Method | Description | |
---|---|---|
GetAccessTokenForRequestAsync ( string authUri = null, |
||
HandleResponseAsync ( Google.Apis.Http.HandleUnsuccessfulResponseArgs args ) : Task |
Handles an abnormal response when sending a HTTP request. A simple rule must be followed, if you modify the request object in a way that the abnormal response can be resolved, you must return
|
|
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 ActiveUserConfig.GetActiveUserToken
|
|
RevokeTokenAsync ( |
Asynchronously revokes the token by calling Google.Apis.Auth.OAuth2.Flows.IAuthorizationCodeFlow.RevokeTokenAsync.
|
public GetAccessTokenForRequestAsync ( string authUri = null, |
||
authUri | string | |
cancellationToken | ||
return | Task |
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 | ||
return | Task |
public RevokeTokenAsync ( |
||
taskCancellationToken | Cancellation token to cancel an operation. | |
return | Task |