Datasnap.DSAuth.TDSCustomAuthenticationManager.Authenticate
Delphi
function Authenticate(const AuthenticateEventObject: TDSAuthenticateEventObject; const Protocol: string; const Context: string; const User: string; const Password: string; UserRoles: TStrings = nil): Boolean; overload; virtual;
function Authenticate(const Protocol: string; const Context: string; const AuthUserName, AuthPassword: string; const Request: TObject; const Response: TObject): Boolean; overload; virtual;
function Authenticate( const AuthenticateEventObject: TDSAuthenticateEventObject; connectionProps: TDBXProperties): boolean; overload; virtual;
C++
virtual bool __fastcall Authenticate(Datasnap::Dscommonserver::TDSAuthenticateEventObject* const AuthenticateEventObject, const System::UnicodeString Protocol, const System::UnicodeString Context, const System::UnicodeString User, const System::UnicodeString Password, System::Classes::TStrings* UserRoles = (System::Classes::TStrings*)(0x0))/* overload */;
virtual bool __fastcall Authenticate(const System::UnicodeString Protocol, const System::UnicodeString Context, const System::UnicodeString AuthUserName, const System::UnicodeString AuthPassword, System::TObject* const Request, System::TObject* const Response)/* overload */;
virtual bool __fastcall Authenticate(Datasnap::Dscommonserver::TDSAuthenticateEventObject* const AuthenticateEventObject, Data::Dbxcommon::TDBXProperties* connectionProps)/* overload */;
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | Datasnap.DSAuth.pas Datasnap.DSAuth.hpp |
Datasnap.DSAuth | TDSCustomAuthenticationManager |
Description
Extrait les valeurs d'authentification d'une connexion et invoque l'événement de l'utilisateur.
Authenticate délègue l'événement OnUserAuthenticate, s'il est spécifié, sinon la fonction renvoie simplement True.