Back to Devexpress

TdxOAuth2AuthorizationAgent.OnReceiveAccessToken Event

vcl-dxauthorizationagents-dot-tdxoauth2authorizationagent-6200ca42.md

latest1.4 KB
Original Source

TdxOAuth2AuthorizationAgent.OnReceiveAccessToken Event

Occurs on an attempt to receive an OAuth 2.0 account access token.

Declaration

delphi
property OnReceiveAccessToken: TReceiveAccessTokenEvent read; write;

Remarks

This event occurs immediately prior to an attempt to receive an authorization code from an OAuth 2.0 authentication server. You can handle the OnReceiveAccessToken event to override all the authentication and authorization routines that the TdxOAuth2AuthorizationAgent class and its descendants provide. Refer to the TReceiveAccessTokenEvent nested procedural type description for detailed information on parameters that you can use in the OnReceiveAccessToken event handler.

Note

The authorization agent component executes its standard authentication and authorization routines if the custom code within the OnReceiveAccessToken event handler has failed to obtain a valid OAuth 2.0 account access token.

See Also

TdxOAuth2AuthorizationAgent Class

TdxOAuth2AuthorizationAgent Members

dxAuthorizationAgents Unit