Skip to main content

TdxOAuth2AuthorizationAgent.AccessToken Property

Returns the online account access token.

Declaration

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