Datasnap.DSSession.TDSSession.RequiresAuthorization
Delphi
function RequiresAuthorization(MethodInfo: TDSMethodInfo): Boolean; virtual;
C++
virtual bool __fastcall RequiresAuthorization(Datasnap::Dscommonserver::TDSMethodInfo* MethodInfo);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Datasnap.DSSession.pas Datasnap.DSSession.hpp |
Datasnap.DSSession | TDSSession |
Description
Returns whether the given method requires authorization.
The RequiresAuthorization method returns True if the given method requires authorization, False otherwise.
For example, DSMetadata.GetDatabase is called when a SQLConnection
to the server is established, so checking for authorization would be redundant (and possibly falsely fail), as the connection is already authenticated.