Datasnap.DSCommonServer.TDSServerConnectionHandler.GetAuthorizeMethodEventObject
| [–] Properties | |
|---|---|
| Type: function | |
| Visibility: public | |
| Source: Datasnap.DSCommonServer.pas Datasnap.DSCommonServer.hpp
| |
| Unit: Datasnap.DSCommonServer | |
| Parent: TDSServerConnectionHandler | |
Delphi
function GetAuthorizeMethodEventObject(
const ServerMethod: TDSServerMethod;
const UserName: string; const UserRoles, AuthorizedRoles, DeniedRoles: TStrings): TDSAuthorizeEventObject;
C++
TDSAuthorizeEventObject* __fastcall GetAuthorizeMethodEventObject(TDSServerMethod* const ServerMethod, const System::UnicodeString UserName, System::Classes::TStrings* const UserRoles, System::Classes::TStrings* const AuthorizedRoles, System::Classes::TStrings* const DeniedRoles);
Description
Builds an event object for Authorization from the given information.
GetAuthorizeMethodEventObject builds a TDSAuthorizeEventObject from the given information. This object is then passed into the OnUserAuthorize event of an authentication manager, to help determine if a user invocation should be authorized or denied.