Method | Description | |
---|---|---|
HandleResponseAsync ( Google.Apis.Http.HandleUnsuccessfulResponseArgs args ) : Task |
||
Initialize ( Google.Apis.Http.ConfigurableHttpClient httpClient ) : void | ||
InterceptAsync ( |
Default implementation is to try to refresh the access token if there is no access token or if we are 1 minute away from expiration. If token server is unavailable, it will try to use the access token even if has expired. If successful, it will call IAccessMethod.Intercept.
|
|
RefreshTokenAsync ( |
Refreshes the token by calling to Google.Apis.Auth.OAuth2.Flows.IAuthorizationCodeFlow.RefreshTokenAsync. Then it updates the TokenResponse with the new token instance.
|
|
UserCredential ( IAuthorizationCodeFlow flow, string userId, Google.Apis.Auth.OAuth2.Responses.TokenResponse token ) : System |
Constructs a new credential instance.
|
public HandleResponseAsync ( Google.Apis.Http.HandleUnsuccessfulResponseArgs args ) : Task |
||
args | Google.Apis.Http.HandleUnsuccessfulResponseArgs | |
return | Task |
public Initialize ( Google.Apis.Http.ConfigurableHttpClient httpClient ) : void | ||
httpClient | Google.Apis.Http.ConfigurableHttpClient | |
return | void |
public InterceptAsync ( |
||
request | ||
taskCancellationToken | ||
return | Task |
public RefreshTokenAsync ( |
||
taskCancellationToken | Cancellation token to cancel an operation. | |
return | Task |
public UserCredential ( IAuthorizationCodeFlow flow, string userId, Google.Apis.Auth.OAuth2.Responses.TokenResponse token ) : System | ||
flow | IAuthorizationCodeFlow | Authorization code flow. |
userId | string | User identifier. |
token | Google.Apis.Auth.OAuth2.Responses.TokenResponse | An initial token for the user. |
return | System |