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
Name Description
options OidcTokenOptions

The options to create the token from.

cancellationToken CancellationToken

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

Returns
Type Description
TaskOidcToken

The OIDC token.

Extension Method