Skip to main content

TdxOAuth2AuthorizationAgent.RefreshScopes(Boolean) Method

Updates the list of active online account access scopes.

Declaration

procedure RefreshScopes(ARestartAgent: Boolean);

Parameters

Name Type
ARestartAgent Boolean

Remarks

The authorization agent component caches the list of requested access scopes (that is, requested permissions to work with specific online resources on behalf of an end-user) prior to the first authorization session for use in subsequent sessions. You can call the RefreshScopes procedure to clear the cache and rebuild the list of access scopes on the next attempt to authorize the agent in an account. Pass True as the ARestartAgent parameter to restart the current authorization session for the access permission changes to take effect immediately. To postpone the changes made to the scopes list, pass False as the function’s parameter instead.

The RegisterScopeRequestor and UnregisterScopeRequestor procedures call the RefreshScopes procedure internally to update the list of account access permissions according to the changed list of associated data providers without restarting the authorization session.

See Also