Datasnap.DSCommonServer.TDSServerConnectionHandler.GetAuthorizeMethodEventObject

From RAD Studio API Documentation
Jump to: navigation, search

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);

Properties

Type Visibility Source Unit Parent
function public
Datasnap.DSCommonServer.pas
Datasnap.DSCommonServer.hpp
Datasnap.DSCommonServer TDSServerConnectionHandler

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.

See Also