Skip to main content

TdxOAuth2AuthorizationAgentUserInfo.AuthorizationAgent Property

Provides access to the OAuth 2.0-compatible authorization agent that authenticates and authorizes the user information provider in an online account.

Declaration

property AuthorizationAgent: TdxOAuth2AuthorizationAgent read;

Property Value

Type
TdxOAuth2AuthorizationAgent

Remarks

You can use this property to configure the associated authorization agent. To access the agent’s class-specific members, cast the AuthorizationAgent property value to the actual authorization agent component class (TdxMicrosoftGraphAPIOAuth2AuthorizationAgent, for instance). Call the AuthorizationAgent.ClassName function to identify the actual agent class.

Call the UpdateInfo procedure to attempt to authenticate and authorize the OAuth 2.0-compatible user information provider in an online account with the current authorization agent settings. If the attempt is successful, the provider retrieves user information from the connected account. To obtain information on possible connection errors, handle the AuthorizationAgent.OnError event.

See Also