Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCloudStorageOAuth2Provider.AuthorizationAgent Property

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

#Declaration

Delphi
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