AuthAttempt Event
Fires when a connected client makes an authentication attempt.
Syntax
ANSI (Cross Platform) virtual int FireAuthAttempt(WebSocketServerAuthAttemptEventParams *e);
typedef struct {
int64 ConnectionID;
const char *Username;
const char *Password;
int Allow; int reserved; } WebSocketServerAuthAttemptEventParams; Unicode (Windows) virtual INT FireAuthAttempt(WebSocketServerAuthAttemptEventParams *e);
typedef struct {
LONG64 ConnectionID;
LPCWSTR Username;
LPCWSTR Password;
BOOL Allow; INT reserved; } WebSocketServerAuthAttemptEventParams;
- (void)onAuthAttempt:(long long)connectionID :(NSString*)username :(NSString*)password :(int*)allow;
#define EID_WEBSOCKETSERVER_AUTHATTEMPT 2 virtual INT SECUREBLACKBOX_CALL FireAuthAttempt(LONG64 &lConnectionID, LPSTR &lpszUsername, LPSTR &lpszPassword, BOOL &bAllow);
Remarks
The class fires this event whenever a client attempts to authenticate itself. Use the Allow parameter to let the client through.
ConnectionID contains the unique session identifier for that client, and Username and Password contain the professed credentials.