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.
Implements
IHttpUnsuccessfulResponseHandler
IConfigurableHttpClientInitializer
IHttpExecuteInterceptor
Inherited Members
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 |
---|---|
IRead |
SubjectTokenJsonFieldName
If set, the subject token response will be parsed as JSON and the
value in the field with name Subject
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 |
---|---|---|
Cancellation |
taskCancellationToken |
Returns
Overrides
Implements
Google.Apis.Http.IHttpUnsuccessfulResponseHandler
Google.Apis.Http.IConfigurableHttpClientInitializer
Google.Apis.Http.IHttpExecuteInterceptor