AuthAttempt Event
Fires when a connected client makes an authentication attempt.
Syntax
class RESTServerAuthAttemptEventParams { public: qint64 ConnectionID(); const QString &Username(); const QString &Password(); bool Allow(); void SetAllow(bool bAllow); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void AuthAttempt(RESTServerAuthAttemptEventParams *e);
// Or, subclass RESTServer and override this emitter function. virtual int FireAuthAttempt(RESTServerAuthAttemptEventParams *e) {...}
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.