Icon TServerSessionAuthenticateEvent

Unit: WebSession

TServerSessionAuthenticateEvent = function (Session:
      TServerSession): Boolean of object

The TServerSessionAuthenticateEvent event type is used by the TServerSession OnAuthenticate event to allow the developer to provide custom authentication credentials and/or specify if authentication should proceed.

The Session parameter indicates the server session that triggered the event and the Result value determines if the authentication should proceed. If Result value is set to False, then authentication will fail with an exception indicating that authentication was cancelled.
Image