Show / Hide Table of Contents

Class UrlSourcedExternalAccountCredential

URL-sourced credentials as described in https://google.aip.dev/auth/4117#determining-the-subject-token-in-microsoft-azure-and-url-sourced-credentials.

Inheritance
object
ServiceCredential
ExternalAccountCredential
UrlSourcedExternalAccountCredential
Implements
IHttpUnsuccessfulResponseHandler
ICredential
IConfigurableHttpClientInitializer
ITokenAccessWithHeaders
ITokenAccess
IHttpExecuteInterceptor
Inherited Members
ExternalAccountCredential.Audience
ExternalAccountCredential.SubjectTokenType
ExternalAccountCredential.ServiceAccountImpersonationUrl
ExternalAccountCredential.WorkforcePoolUserProject
ExternalAccountCredential.ClientId
ExternalAccountCredential.ClientSecret
ExternalAccountCredential.UniverseDomain
ExternalAccountCredential.RequestAccessTokenAsync(CancellationToken)
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 UrlSourcedExternalAccountCredential : ExternalAccountCredential, IHttpUnsuccessfulResponseHandler, ICredential, IConfigurableHttpClientInitializer, ITokenAccessWithHeaders, ITokenAccess, IHttpExecuteInterceptor

Properties

Headers

Headers to include in the request for the subject token. May be empty. Will not be null.

Declaration
public IReadOnlyDictionary<string, string> Headers { get; }
Property Value
Type Description
IReadOnlyDictionary<string, string>

SubjectTokenJsonFieldName

If set, the subject token response will be parsed as JSON and the value in the field with name SubjectTokenJsonFieldName will be returned as the subject token.

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

SubjectTokenUrl

The URL from which to obtain the subject token.

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

Methods

GetSubjectTokenAsyncImpl(CancellationToken)

Gets the subject token to be exchanged for the access token.

Declaration
protected override Task<string> GetSubjectTokenAsyncImpl(CancellationToken taskCancellationToken)
Parameters
Type Name Description
CancellationToken taskCancellationToken
Returns
Type Description
Task<string>
Overrides
ExternalAccountCredential.GetSubjectTokenAsyncImpl(CancellationToken)

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