TTMSFNCSimpleCloudOAuth Class
OAuth service base class for providers that use the default token retrieval workflow.
API unit family: TMSFNCCloudOAuth
Inherits from: TTMSFNCCloudOAuth
Syntax
TTMSFNCSimpleCloudOAuth = class(TTMSFNCCloudOAuth)
Properties
| Name |
Description |
| Authentication |
Provides the credentials, callback URL, and token values used by the OAuth flow. (inherited from TTMSFNCCloudOAuth) |
| PersistTokens |
Configures how OAuth tokens are loaded from and saved to persistent storage. (inherited from TTMSFNCCloudOAuth) |
Methods
| Name |
Description |
| Authenticate |
Starts the OAuth authentication workflow. (inherited from TTMSFNCCustomCloudOAuth) |
| ClearTokens |
Clears the current token values and removes the persisted token data when applicable. (inherited from TTMSFNCCustomCloudOAuth) |
| Connect |
Connects to the cloud service, loading tokens and authenticating when needed. (inherited from TTMSFNCCustomCloudOAuth) |
| DestroyHTTPServer |
Stops and releases the local HTTP callback server used by the OAuth flow. (inherited from TTMSFNCCustomCloudOAuth) |
| FetchAccessToken |
Starts authentication and resolves with the current access token. (inherited from TTMSFNCCustomCloudOAuth) |
| LoadTokens |
Loads persisted credentials and token values according to PersistTokens. (inherited from TTMSFNCCustomCloudOAuth) |
| SaveTokens |
Saves the current credentials and token values according to PersistTokens. (inherited from TTMSFNCCustomCloudOAuth) |
| TestTokens |
Tests whether the current access tokens are accepted by the provider. (inherited from TTMSFNCCustomCloudOAuth) |
Events
| Name |
Description |
| OnAccessDenied |
Occurs when the OAuth provider rejects or denies the authorization request. (inherited from TTMSFNCCloudOAuth) |
| OnAuthenticated |
Occurs after authentication data is received from the OAuth provider. (inherited from TTMSFNCCloudOAuth) |
| OnBeforeRunExternalBrowser |
Occurs before the component opens the external authorization URL. (inherited from TTMSFNCCloudOAuth) |
| OnConfigureHTTPServer |
Occurs after the local HTTP callback server has been created and can be customized. (inherited from TTMSFNCCloudOAuth) |
| OnConfigureHTTPServerSSLHandler |
Occurs after the local HTTPS callback server SSL handler has been created and can be customized. (inherited from TTMSFNCCloudOAuth) |
| OnConnected |
Occurs after the component finishes the connect workflow successfully. (inherited from TTMSFNCCloudOAuth) |
| OnGetAuthorizationPageHTML |
Occurs before the callback page HTML is returned to the authorization browser. (inherited from TTMSFNCCloudOAuth) |
| OnRequestTestTokensResult |
Occurs after a token validation request returns its result. (inherited from TTMSFNCCloudOAuth) |
Used by