Interface IOidcTokenProvider (1.59.0)

public interface IOidcTokenProvider

Represents an OIDC token provider.

Namespace

Google.Apis.Auth.OAuth2

Assembly

Google.Apis.Auth.dll

Methods

GetOidcTokenAsync(OidcTokenOptions, CancellationToken)

Task<OidcToken> GetOidcTokenAsync(OidcTokenOptions options, CancellationToken cancellationToken = default(CancellationToken))

Returns an OIDC token for the given options.

Parameters
NameDescription
optionsOidcTokenOptions

The options to create the token from.

cancellationTokenCancellationToken

The cancellation token that may be used to cancel the request.

Returns
TypeDescription
Task<OidcToken>

The OIDC token.

Extension Method