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.AccessToken Property

Returns the online account access token.

#Declaration

Delphi
property AccessToken: string read;

#Property Value

Type
string

#Remarks

The authorization agent uses the access token to perform authenticated requests to online resources on behalf of an end-user. The access token is short-lived; you can obtain its expiration time by using the AccessTokenExpiresIn property. The authorization agent uses its refresh token to update the access token once it expires.

A FinishAuthorization procedure call sets the AccessToken property’s underlying field to an empty string. The account access token remains valid until it expires, and you can assign it to the authorization agent by calling the Load procedure. You can render both the access and refresh tokens by calling the RevokeAccessToken procedure if the OAuth 2.0 authorization server supports token revocation requests.

See Also