Back to Devexpress

TdxCustomAuthorizationAgent.OnStartAuthorization Event

vcl-dxauthorizationagents-dot-tdxcustomauthorizationagent-b53b974b.md

latest1.6 KB
Original Source

TdxCustomAuthorizationAgent.OnStartAuthorization Event

Notifies of a successful start of the authorization session.

Declaration

delphi
property OnStartAuthorization: TNotifyEvent read; write;

Remarks

This event fires every time a StartAuthorization or RestartAuthorization procedure call successfully authenticates and authorizes the agent component in an online account. The Sender parameter provides access to the authorization agent component that has established a connection. To access the component’s type-specific members within an event handler, cast Sender to the corresponding class (TdxMicrosoftGraphAPIOAuth2AuthorizationAgent, for instance).

Note

If an error occurs during an attempt to authenticate or authorize the agent component in an online account, the OnError event is raised instead of OnStartAuthorization.

See Also

TdxCustomAuthorizationAgent.IsAuthorized

TdxCustomAuthorizationAgent.OnFinishAuthorization

TdxCustomAuthorizationAgent Class

TdxCustomAuthorizationAgent Members

dxAuthorizationAgents Unit