Back to Devexpress

TdxOAuth2AuthorizationAgent.Load(string,string,string) Method

vcl-dxauthorizationagents-dot-tdxoauth2authorizationagent-dot-load-x28-system-dot-string-system-dot-string-system-dot-string-x29.md

latest1.6 KB
Original Source

TdxOAuth2AuthorizationAgent.Load(string,string,string) Method

Assigns the specified access and refresh tokens to the authorization agent.

Declaration

delphi
procedure Load(AAccessToken: string; ARefreshToken: string; AAccessTokenType: string);

Parameters

NameType
AAccessTokenstring
ARefreshTokenstring
AAccessTokenTypestring

Remarks

Call this procedure to update the AccessToken, RefreshToken, and AccessTokenType properties with the strings passed as the AAccessToken, ARefreshToken, and AAccessTokenType parameters, respectively. The Load procedure is useful if you need to assign the previously stored valid access and refresh tokens to a new TdxOAuth2AuthorizationAgent class descendant instance.

Note

Calling the Load procedure automatically terminates the current authorization session.

See Also

TdxOAuth2AuthorizationAgent Class

TdxOAuth2AuthorizationAgent Members

dxAuthorizationAgents Unit