QuickBooks Integrator 2020 C++ Edition

Questions / Feedback?

Authorization Event

Fired when the client presents its credentials to the server.

Syntax

ANSI (Cross Platform)
virtual int FireAuthorization(QBConnectorAuthorizationEventParams *e);
typedef struct {
int ConnectionId;
int UserIndex;
const char *User;
const char *Password;
int Accept; int reserved; } QBConnectorAuthorizationEventParams; Unicode (Windows) virtual INT FireAuthorization(QBConnectorAuthorizationEventParams *e);
typedef struct {
INT ConnectionId;
INT UserIndex;
LPCWSTR User;
LPCWSTR Password;
BOOL Accept; INT reserved; } QBConnectorAuthorizationEventParams;
- (void)onAuthorization:(int)connectionId :(int)userIndex :(NSString*)user :(NSString*)password :(int*)accept;
#define EID_QBCONNECTOR_AUTHORIZATION 1

virtual INT INQB_CALL FireAuthorization(INT &iConnectionId, INT &iUserIndex, LPSTR &lpszUser, LPSTR &lpszPassword, BOOL &bAccept);

Remarks

This is where the server can decide whether to continue or not, based on the supplied User and Password.

To accept or reject a connection set Accept to True of False.

The Accept parameter defaults to True if User is found in the AuthorizedUsers collection and Password matches, and False otherwise. The UserIndex parameter indicates the index at which the authorized user was found in the collection.

A UserIndex of -1 means that no matching credentials were found in the AuthorizedUsers collection.

Copyright (c) 2021 /n software inc. - All rights reserved.
QuickBooks Integrator 2020 C++ Edition - Version 20.0 [Build 7941]