Class OidcToken (1.60.0)

public sealed class OidcToken

Represents an OIDC Token.

Inheritance

object > OidcToken

Namespace

GoogleApisAuthOAuth2

Assembly

Google.Apis.Auth.dll

Methods

GetAccessTokenAsync(CancellationToken)

public Task<string> GetAccessTokenAsync(CancellationToken cancellationToken = default)

Gets the access token that should be included in headers when performing requests with this OidcToken. This method will refresh the access token if the current one has expired.

Parameter
Name Description
cancellationToken CancellationToken

The cancellation token to use for cancelling the operation.

Returns
Type Description
Taskstring

The valid access token associated to this OidcToken.

Extension Method