Class TokenRequestExtenstions
Extension methods to Token
Inherited Members
Namespace: Google.Apis.Auth.OAuth2.Requests
Assembly: Google.Apis.Auth.dll
Syntax
public static class TokenRequestExtenstions
Methods
ExecuteAsync(TokenRequest, HttpClient, string, CancellationToken, IClock)
Executes the token request in order to receive a
Token
Declaration
public static Task<TokenResponse> ExecuteAsync(this TokenRequest request, HttpClient httpClient, string tokenServerUrl, CancellationToken taskCancellationToken, IClock clock)
Parameters
Type | Name | Description |
---|---|---|
Token |
request | The token request. |
Http |
httpClient | The HTTP client used to create an HTTP request. |
string | tokenServerUrl | The token server URL. |
Cancellation |
taskCancellationToken | Cancellation token to cancel operation. |
IClock | clock | The clock which is used to set the Issued property. |
Returns
Type | Description |
---|---|
Task<Token |
Token response with the new access token. |