Interface ProgrammaticExternalAccountCredential.ISubjectTokenProvider (1.73.0)

public interface ProgrammaticExternalAccountCredential.ISubjectTokenProvider

Subject token provider which is passed to a ProgrammaticExternalAccountCredential as the means to obtain the third-party or external credentials token to include on the STS token exchange request.

Namespace

Google.Apis.Auth.OAuth2

Assembly

Google.Apis.Auth.dll

Methods

GetSubjectTokenAsync(ProgrammaticExternalAccountCredential, CancellationToken)

Task<string> GetSubjectTokenAsync(ProgrammaticExternalAccountCredential caller, CancellationToken taskCancellationToken)

Obtains the subject token for the third-party credentials that will be inclded on the STS token exchange request. The returned value will be included on the STS token exchange request as is. This method will only be called when no Google access token has been obtained or it has (or is about to) expired,

Parameters
Name Description
caller ProgrammaticExternalAccountCredential

The credential calling this subject token provider. This may be useful to use state stored in the credential for obtaining the subject token, but should be ignored otherwise. Will not be null.

taskCancellationToken CancellationToken

The cancellation token for the operation.

Returns
Type Description
Taskstring

Extension Method