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
IHttpExecuteInterceptor
IHttpUnsuccessfulResponseHandler
IConfigurableHttpClientInitializer
Inherited Members
Namespace: Google.Apis.Auth.OAuth2
Assembly: Google.Apis.Auth.dll
Syntax
public sealed class UrlSourcedExternalAccountCredential : ExternalAccountCredential, IHttpExecuteInterceptor, IHttpUnsuccessfulResponseHandler, ICredential, IConfigurableHttpClientInitializer, ITokenAccessWithHeaders, ITokenAccess
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
Implements
Google.Apis.Http.IHttpExecuteInterceptor
Google.Apis.Http.IHttpUnsuccessfulResponseHandler
Google.Apis.Http.IConfigurableHttpClientInitializer