TTMSFNCCustomCloudOAuth Class
Base class for OAuth-enabled cloud service components.
API unit family: TMSFNCCloudOAuth
Inherits from: TTMSFNCCustomCloudBase
Syntax
TTMSFNCCustomCloudOAuth = class(TTMSFNCCustomCloudBase)
Remarks
Descendants provide provider-specific authorization URLs, token parsing, token testing, and API request behavior.
Methods
| Name | Description |
|---|---|
| Authenticate | Starts the OAuth authentication workflow. |
| ClearTokens | Clears the current token values and removes the persisted token data when applicable. |
| Connect | Connects to the cloud service, loading tokens and authenticating when needed. |
| DestroyHTTPServer | Stops and releases the local HTTP callback server used by the OAuth flow. |
| FetchAccessToken | Starts authentication and resolves with the current access token. |
| LoadTokens | Loads persisted credentials and token values according to PersistTokens. |
| SaveTokens | Saves the current credentials and token values according to PersistTokens. |
| TestTokens | Tests whether the current access tokens are accepted by the provider. |