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
ExternalAccountAuthorizedUserCredential
Implements
IHttpUnsuccessfulResponseHandler
IConfigurableHttpClientInitializer
IHttpExecuteInterceptor
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
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
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
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
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
UniverseDomain
The universe domain this credential belogns to.
Won't be null.
Declaration
public string UniverseDomain { get; }
Property Value
Methods
RequestAccessTokenAsync(CancellationToken)
Declaration
public override Task<bool> RequestAccessTokenAsync(CancellationToken taskCancellationToken)
Parameters
Returns
Overrides
ToGoogleCredential()
Declaration
public GoogleCredential ToGoogleCredential()
Returns
Implements
Google.Apis.Http.IHttpUnsuccessfulResponseHandler
Google.Apis.Http.IConfigurableHttpClientInitializer
Google.Apis.Http.IHttpExecuteInterceptor