Datasnap.DSAuth.TDSCustomAuthenticationManager.Authorize

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Datasnap.DSAuth.pas
Datasnap.DSAuth.hpp
Unit: Datasnap.DSAuth
Parent: TDSCustomAuthenticationManager

Delphi

function Authorize(const EventObject: TDSAuthorizeEventObject): boolean; virtual;

C++

virtual bool __fastcall Authorize(Datasnap::Dscommonserver::TDSAuthorizeEventObject* const EventObject);

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.

See Also