Class UrlSourcedExternalAccountCredential (1.60.0)

public sealed class UrlSourcedExternalAccountCredential : ExternalAccountCredential, IHttpExecuteInterceptor, IHttpUnsuccessfulResponseHandler, ICredential, IConfigurableHttpClientInitializer, ITokenAccessWithHeaders, ITokenAccess

Inheritance

object > ServiceCredential > ExternalAccountCredential > UrlSourcedExternalAccountCredential

Namespace

GoogleApisAuthOAuth2

Assembly

Google.Apis.Auth.dll

Properties

Headers

public IReadOnlyDictionary<string, string> Headers { get; }

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

Property Value
TypeDescription
IReadOnlyDictionarystringstring

SubjectTokenJsonFieldName

public string SubjectTokenJsonFieldName { get; }

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.

Property Value
TypeDescription
string

SubjectTokenUrl

public string SubjectTokenUrl { get; }

The URL from which to obtain the subject token.

Property Value
TypeDescription
string

Methods

GetSubjectTokenAsyncImpl(CancellationToken)

protected override Task<string> GetSubjectTokenAsyncImpl(CancellationToken taskCancellationToken)

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

Parameter
NameDescription
taskCancellationTokenCancellationToken
Returns
TypeDescription
Taskstring
Overrides

Extension Method