Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxOAuth2AuthorizationAgent.OnReceiveAccessToken Event

In This Article

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