Datasnap.DSAuth.TDSAuthorizationEvent

From RAD Studio API Documentation
Jump to: navigation, search

C++

typedef void __fastcall (__closure *TDSAuthorizationEvent)(System::TObject* Sender, Datasnap::Dscommonserver::TDSAuthorizeEventObject* AuthorizeEventObject, bool &valid);

Properties

Type Visibility Source Unit Parent
typedef public 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.

See Also