Class OidcToken
Represents an OIDC Token.
Inherited Members
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. |