Interface IOidcTokenProvider (1.60.0)

public interface IOidcTokenProvider

Represents an OIDC token provider.

Namespace

GoogleApisAuthOAuth2

Assembly

Google.Apis.Auth.dll

Methods

GetOidcTokenAsync(OidcTokenOptions, CancellationToken)

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

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
TaskOidcToken

The OIDC token.

Extension Method