Show / Hide Table of Contents

Class OidcToken

Represents an OIDC Token.

Inheritance
object
OidcToken
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Auth.OAuth2
Assembly: Google.Apis.Auth.dll
Syntax
public sealed class OidcToken

Methods

GetAccessTokenAsync(CancellationToken)

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.

Declaration
public Task<string> GetAccessTokenAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken

The cancellation token to use for cancelling the operation.

Returns
Type Description
Task<string>

The valid access token associated to this OidcToken.

In This Article
Back to top Generated by DocFX