IRhinoAccountsManagerRevokeAuthTokenAsync Method |
Invalidates/revokes an
IOAuth2Token object from the Rhino Accounts server.
Namespace:
Rhino.Runtime.RhinoAccounts
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 7.0
SyntaxTask RevokeAuthTokenAsync(
IOAuth2Token oauth2Token,
SecretKey secretKey,
CancellationToken cancellationToken
)
Function RevokeAuthTokenAsync (
oauth2Token As IOAuth2Token,
secretKey As SecretKey,
cancellationToken As CancellationToken
) As Task
Parameters
- oauth2Token
- Type: Rhino.Runtime.RhinoAccountsIOAuth2Token
The token to revoke. - secretKey
- Type: Rhino.Runtime.RhinoAccountsSecretKey
A special key that was handed to you in ExecuteProtectedCodeAsync(FuncSecretKey, Task) - cancellationToken
- Type: System.ThreadingCancellationToken
A token that can be used to signal that the operation should be cancelled.
Return Value
Type:
Task[Missing <returns> documentation for "M:Rhino.Runtime.RhinoAccounts.IRhinoAccountsManager.RevokeAuthTokenAsync(Rhino.Runtime.RhinoAccounts.IOAuth2Token,Rhino.Runtime.RhinoAccounts.SecretKey,System.Threading.CancellationToken)"]
Exceptions| Exception | Condition |
|---|
| InvalidOperationException | An invalid secretKey was passed, or the assembly is not allowed to call methods from IRhinoAccountsManager |
| OperationCanceledException | The operation was cancelled, either by internal decisions or because the cancellationToken was cancelled. |
RemarksIf the OAuth 2 token is stored in the local cache, it will be removed from the cache as well.
See Also