Show / Hide Table of Contents

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
Syntax
public interface ProgrammaticExternalAccountCredential.ISubjectTokenProvider

Methods

GetSubjectTokenAsync(ProgrammaticExternalAccountCredential, CancellationToken)

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,

Declaration
Task<string> GetSubjectTokenAsync(ProgrammaticExternalAccountCredential caller, CancellationToken taskCancellationToken)
Parameters
Type Name Description
ProgrammaticExternalAccountCredential caller

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.

CancellationToken taskCancellationToken

The cancellation token for the operation.

Returns
Type Description
Task<string>
In this article
Back to top Generated by DocFX