Google API Client Library for .NET  1.10.0
Public Member Functions | Properties | List of all members
Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlow.Initializer Class Reference

An initializer class for the authorization code flow. More...

Inheritance diagram for Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlow.Initializer:
Google.Apis.Auth.OAuth2.Flows.GoogleAuthorizationCodeFlow.Initializer

Public Member Functions

 Initializer (string authorizationServerUrl, string tokenServerUrl)
 Constructs a new initializer. More...
 

Properties

IAccessMethod AccessMethod [get, set]
 Gets or sets the method for presenting the access token to the resource server. The default value is Google.Apis.Auth.OAuth2.BearerToken.AuthorizationHeaderAccessMethod. More...
 
string TokenServerUrl [get, set]
 Gets the token server URL. More...
 
string AuthorizationServerUrl [get, set]
 Gets or sets the authorization server URL. More...
 
ClientSecrets ClientSecrets [get, set]
 Gets or sets the client secrets which includes the client identifier and its secret. More...
 
Stream ClientSecretsStream [get, set]
 Gets or sets the client secrets stream which contains the client identifier and its secret. More...
 
IDataStore DataStore [get, set]
 Gets or sets the data store used to store the token response. More...
 
IEnumerable< string > Scopes [get, set]
 Gets or sets the scopes which indicate the API access your application is requesting. More...
 
IHttpClientFactory HttpClientFactory [get, set]
 Gets or sets the factory for creating System.Net.Http.HttpClient instance. More...
 
ExponentialBackOffPolicy DefaultExponentialBackOffPolicy [get, set]
 Get or sets the exponential back-off policy. Default value is UnsuccessfulResponse503, which means that exponential back-off is used on 503 abnormal HTTP responses. If the value is set to None, no exponential back-off policy is used, and it's up to user to configure the Google.Apis.Http.ConfigurableMessageHandler in an Google.Apis.Http.IConfigurableHttpClientInitializer to set a specific back-off implementation (using Google.Apis.Http.BackOffHandler). More...
 
IClock Clock [get, set]
 Gets or sets the clock. The clock is used to determine if the token has expired, if so we will try to refresh it. The default value is Google.Apis.Util.SystemClock.Default. More...
 

Detailed Description

An initializer class for the authorization code flow.

Constructor & Destructor Documentation

Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlow.Initializer.Initializer ( string  authorizationServerUrl,
string  tokenServerUrl 
)
inline

Constructs a new initializer.

Parameters
authorizationServerUrlAuthorization server URL
tokenServerUrlToken server URL

Property Documentation

IAccessMethod Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlow.Initializer.AccessMethod
getset

Gets or sets the method for presenting the access token to the resource server. The default value is Google.Apis.Auth.OAuth2.BearerToken.AuthorizationHeaderAccessMethod.

string Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlow.Initializer.AuthorizationServerUrl
getset

Gets or sets the authorization server URL.

ClientSecrets Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlow.Initializer.ClientSecrets
getset

Gets or sets the client secrets which includes the client identifier and its secret.

Stream Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlow.Initializer.ClientSecretsStream
getset

Gets or sets the client secrets stream which contains the client identifier and its secret.

The AuthorizationCodeFlow constructor is responsible for disposing the stream.

IClock Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlow.Initializer.Clock
getset

Gets or sets the clock. The clock is used to determine if the token has expired, if so we will try to refresh it. The default value is Google.Apis.Util.SystemClock.Default.

IDataStore Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlow.Initializer.DataStore
getset

Gets or sets the data store used to store the token response.

ExponentialBackOffPolicy Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlow.Initializer.DefaultExponentialBackOffPolicy
getset

Get or sets the exponential back-off policy. Default value is UnsuccessfulResponse503, which means that exponential back-off is used on 503 abnormal HTTP responses. If the value is set to None, no exponential back-off policy is used, and it's up to user to configure the Google.Apis.Http.ConfigurableMessageHandler in an Google.Apis.Http.IConfigurableHttpClientInitializer to set a specific back-off implementation (using Google.Apis.Http.BackOffHandler).

IHttpClientFactory Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlow.Initializer.HttpClientFactory
getset

Gets or sets the factory for creating System.Net.Http.HttpClient instance.

IEnumerable<string> Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlow.Initializer.Scopes
getset

Gets or sets the scopes which indicate the API access your application is requesting.

string Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlow.Initializer.TokenServerUrl
getset

Gets the token server URL.


The documentation for this class was generated from the following file: