Skip to main content

TdxCloudStorageOAuth2Provider.AuthorizationAgent Property

Associates the cloud storage data provider with the corresponding authorization agent component that supports the OAuth 2.0 authentication protocol.

Declaration

property AuthorizationAgent: TdxOAuth2AuthorizationAgent read; write;

Property Value

Type
TdxOAuth2AuthorizationAgent

Remarks

Use this property to associate the cloud storage data provider with a configured OAuth 2.0-compatible authorization agent corresponding to the actual TdxCloudStorageOAuth2Provider class descendant. Then, you can set the cloud storage component’s Connected property to True to attempt to connect the provider to an online file storage service using the current authorization agent settings.

To access all class members that the actual OAuth 2.0-compatible authorization agent provides, cast the AuthorizationAgent property value to the corresponding component class (TdxGoogleAPIOAuth2AuthorizationAgent in the case of a Google Drive storage data provider, for instance).

Note

No cloud storage data provider can connect to an online account without a properly configured authorization agent.

The default AuthorizationAgent property value is nil.

See Also