Datasnap.DSAuth.TDSAuthorizationEvent
Delphi
TDSAuthorizationEvent = procedure(Sender: TObject;
AuthorizeEventObject: TDSAuthorizeEventObject;
var valid: boolean) of object;
C++
typedef void __fastcall (__closure *TDSAuthorizationEvent)(System::TObject* Sender, Datasnap::Dscommonserver::TDSAuthorizeEventObject* AuthorizeEventObject, bool &valid);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
type typedef |
public | Datasnap.DSAuth.pas Datasnap.DSAuth.hpp |
Datasnap.DSAuth | Datasnap.DSAuth |
Description
Event for user authorization.
TDSAuthorizationEvent is the event used by the authentication manager to perform user authorization. The AuthorizeEventObject
parameter provides information about the current invocation to be authorized or denied, such as the authorized and denied roles on the server method being invoked, the name of the user attempting the invocation, and the user roles assigned to that user.
The valid
parameter can be set to either True or False, to specify whether the authorization passed or failed.