Class FileSourcedExternalAccountCredential (1.59.0)

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

Inheritance

Object > ServiceCredential > ExternalAccountCredential > FileSourcedExternalAccountCredential

Namespace

Google.Apis.Auth.OAuth2

Assembly

Google.Apis.Auth.dll

Properties

SubjectTokenFilePath

public string SubjectTokenFilePath { get; }

The file path from which to obtain the subject token.

Property Value
TypeDescription
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
TypeDescription
String

Methods

GetSubjectTokenAsyncImpl(CancellationToken)

protected override async Task<string> GetSubjectTokenAsyncImpl(CancellationToken taskCancellationToken)

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

Parameter
NameDescription
taskCancellationTokenCancellationToken
Returns
TypeDescription
Task<String>
Overrides

Extension Method