public interface ProgrammaticExternalAccountCredential.ISubjectTokenProviderSubject 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.OAuth2Assembly
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 |
ProgrammaticExternalAccountCredentialThe 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 |
CancellationTokenThe cancellation token for the operation. |
| Returns | |
|---|---|
| Type | Description |
Taskstring |
|