Class OidcToken (1.50.0)

public sealed class OidcToken : object

Represents an OIDC Token.

Inheritance

Object > OidcToken

Namespace

Google.Apis.Auth.OAuth2

Assembly

Google.Apis.Auth.dll

Methods

GetAccessTokenAsync(CancellationToken)

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

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
NameDescription
cancellationTokenCancellationToken

The cancellation token to use for cancelling the operation.

Returns
TypeDescription
Task<String>

The valid access token associated to this OidcToken.

Extension Method