Table of Contents

Class OAuth2Connection

Namespace
combit.Reporting.DataProviders
Assembly
combit.ListLabel31.CrossPlatform.dll

Holds information details about a OAuth 2.0 connection that can be used to authenticate web requests in the RestDataProvider using OAuth2Connection.

public class OAuth2Connection
Inheritance
OAuth2Connection
Inherited Members

Properties

AccessToken

Optional last access token that was issued to the client. If this property is not set, the first request will acquire its access token using the RefreshToken to get the access token instead of trying previous access tokens. If the access token is stored persistently, use OAuth2TokenRefreshed and replace the stored access token with the supplied AccessToken.

public string AccessToken { get; set; }

Property Value

string

AccessTokenUrl

The token endpoint of the specific OAuth 2.0 service. (e.g. https://example.org/oauth/token)

public string AccessTokenUrl { get; set; }

Property Value

string

ClientId

The client identifier issued to the client during the registration process.

public string ClientId { get; set; }

Property Value

string

ClientSecret

The secret of the client specified in ClientId.

public string ClientSecret { get; set; }

Property Value

string

RefreshToken

The refresh token that was issued to the client and should be used to refresh the access token when expired. If the refresh token is stored persistently, use OAuth2TokenRefreshed and replace the stored refresh token with the supplied RefreshToken.

public string RefreshToken { get; set; }

Property Value

string

Scope

Optional scopes that were used to acquire the RefreshToken.

public string Scope { get; set; }

Property Value

string