public sealed class FileSourcedExternalAccountCredential : ExternalAccountCredential, IHttpUnsuccessfulResponseHandler, ICredential, IConfigurableHttpClientInitializer, ITokenAccessWithHeaders, ITokenAccess, IHttpExecuteInterceptorFile-sourced credentials as described in https://google.aip.dev/auth/4117#determining-the-subject-token-in-file-sourced-credentials.
Inheritance
object > ServiceCredential > ExternalAccountCredential > FileSourcedExternalAccountCredentialImplements
IHttpUnsuccessfulResponseHandler, ICredential, IConfigurableHttpClientInitializer, ITokenAccessWithHeaders, ITokenAccess, IHttpExecuteInterceptorNamespace
Google.Apis.Auth.OAuth2Assembly
Google.Apis.Auth.dll
Properties
SubjectTokenFilePath
public string SubjectTokenFilePath { get; }The file path from which to obtain the subject token.
| Property Value | |
|---|---|
| Type | Description |
string |
|
SubjectTokenJsonFieldName
public string SubjectTokenJsonFieldName { get; }If set, the subject token file content will be parsed as JSON and the value in the field with name SubjectTokenJsonFieldName will be returned as the subject token.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Methods
GetSubjectTokenAsyncImpl(CancellationToken)
protected override Task<string> GetSubjectTokenAsyncImpl(CancellationToken taskCancellationToken)Gets the subject token to be exchanged for the access token.
| Parameter | |
|---|---|
| Name | Description |
taskCancellationToken |
CancellationToken |
| Returns | |
|---|---|
| Type | Description |
Taskstring |
|