Show / Hide Table of Contents

Class ExternalAccountAuthorizedUserCredential

OAuth2 credentials sourced using external identities through Workforce Identity Federation. Obtaining the initial access and refresh token can be done through the Google Cloud CLI.

Inheritance
object
ServiceCredential
ExternalAccountAuthorizedUserCredential
Implements
IHttpUnsuccessfulResponseHandler
ICredential
IConfigurableHttpClientInitializer
ITokenAccessWithHeaders
ITokenAccess
IHttpExecuteInterceptor
Inherited Members
ServiceCredential.TokenServerUrl
ServiceCredential.Clock
ServiceCredential.AccessMethod
ServiceCredential.HttpClient
ServiceCredential.Scopes
ServiceCredential.Token
ServiceCredential.QuotaProject
ServiceCredential.Initialize(ConfigurableHttpClient)
ServiceCredential.InterceptAsync(HttpRequestMessage, CancellationToken)
ServiceCredential.HandleResponseAsync(HandleUnsuccessfulResponseArgs)
ServiceCredential.GetAccessTokenForRequestAsync(string, CancellationToken)
ServiceCredential.GetAccessTokenWithHeadersForRequestAsync(string, CancellationToken)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Auth.OAuth2
Assembly: Google.Apis.Auth.dll
Syntax
public sealed class ExternalAccountAuthorizedUserCredential : ServiceCredential, IHttpUnsuccessfulResponseHandler, ICredential, IConfigurableHttpClientInitializer, ITokenAccessWithHeaders, ITokenAccess, IHttpExecuteInterceptor

Properties

Audience

This is the STS audience which contains the resource name for the workforce pool and the provider identifier in that pool. May be null as this value is kept for informational purposes only.

Declaration
public string Audience { get; }
Property Value
Type Description
string

ClientId

The client ID to use for basic authentication for refresh token requests. Must not be null or empty.

Declaration
public string ClientId { get; }
Property Value
Type Description
string

ClientSecret

The client secret to use for basic authentication for refresh token requests. Must not be null or empty.

Declaration
public string ClientSecret { get; }
Property Value
Type Description
string

RefreshToken

The refresh token used to refresh the access token that will be associated with the credential. Must not be null or empty.

Declaration
public string RefreshToken { get; }
Property Value
Type Description
string

TokenInfoUrl

Endpoint to retrieve information related to the user account, like email, username, etc. May be null as this value is kept for informational purposes only.

Declaration
public string TokenInfoUrl { get; }
Property Value
Type Description
string

UniverseDomain

The universe domain this credential belogns to. Won't be null.

Declaration
public string UniverseDomain { get; }
Property Value
Type Description
string

Methods

RequestAccessTokenAsync(CancellationToken)

Declaration
public override Task<bool> RequestAccessTokenAsync(CancellationToken taskCancellationToken)
Parameters
Type Name Description
CancellationToken taskCancellationToken
Returns
Type Description
Task<bool>
Overrides
ServiceCredential.RequestAccessTokenAsync(CancellationToken)

ToGoogleCredential()

Creates a GoogleCredential from this credential.

Declaration
public GoogleCredential ToGoogleCredential()
Returns
Type Description
GoogleCredential

Implements

Google.Apis.Http.IHttpUnsuccessfulResponseHandler
ICredential
Google.Apis.Http.IConfigurableHttpClientInitializer
ITokenAccessWithHeaders
ITokenAccess
Google.Apis.Http.IHttpExecuteInterceptor
In this article
Back to top Generated by DocFX