Datasnap.DSAuth.TDSCustomAuthenticationManager.Authorize
Delphi
function Authorize(const EventObject: TDSAuthorizeEventObject): boolean; virtual;
C++
virtual bool __fastcall Authorize(Datasnap::Dscommonserver::TDSAuthorizeEventObject* const EventObject);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Datasnap.DSAuth.pas Datasnap.DSAuth.hpp |
Datasnap.DSAuth | TDSCustomAuthenticationManager |
Description
Returns whether the specified user is authorized to access the method in question.
Delegates into the OnUserAuthorize event, if one is specified. Otherwise, it returns True, as long as the specified SessionUserRoles are not denied authorization to the server method being invoked. The authorization is done based on the authorized and denied roles stored in the EventObject.