Table of Contents

Class CloudStorageConnectorUsingOAuth2

Namespace
ArcanaDevelopment.adTempus.Client
Assembly
ArcanaDevelopment.adTempus.Client.dll
public abstract class CloudStorageConnectorUsingOAuth2 : CloudStorageConnector
Inheritance
object
CloudStorageConnectorUsingOAuth2
Derived

Properties

OAuth2TokenSet

public bool OAuth2TokenSet { get; }

Property Value

bool

Tenant

public string Tenant { get; set; }

Property Value

string

UserId

public string UserId { get; set; }

Property Value

string

Methods

BeginOAuth2Authorization(string)

Begins OAuth2 authorization using the provider's current settings.

public OAuth2AuthorizationRequest BeginOAuth2Authorization(string redirectUri)

Parameters

NameTypeDescription
redirectUri string

The loopback redirect URI the client is listening on for the authorization code.

Returns

OAuth2AuthorizationRequest

The authorization URL to open in the browser, and the values needed to complete the authorization.

Remarks

Requires server version 6 or later. After the user authorizes access, call CompleteOAuth2Authorization(OAuth2AuthorizationRequest, string).

CompleteOAuth2Authorization(OAuth2AuthorizationRequest, string)

Completes OAuth2 authorization and stores the resulting token in the provider.

public void CompleteOAuth2Authorization(OAuth2AuthorizationRequest request, string authorizationCode)

Parameters

NameTypeDescription
request OAuth2AuthorizationRequest

The request returned by BeginOAuth2Authorization(string).

authorizationCode string

The authorization code returned to the redirect URI.

Remarks

The server exchanges the code for a token, so the app registration's client secret is never sent to the client. The token is saved when the provider is saved.

SetOAuth2Token(string)

public void SetOAuth2Token(string value)

Parameters

NameTypeDescription
value string

Inherited Members