Click or drag to resize

IRhinoAccountsManagerRevokeAuthTokenAsync Method

Invalidates/revokes an IOAuth2Token object from the Rhino Accounts server.

Namespace:  Rhino.Runtime.RhinoAccounts
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 7.0
Syntax
Task RevokeAuthTokenAsync(
	IOAuth2Token oauth2Token,
	SecretKey secretKey,
	CancellationToken cancellationToken
)

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
ExceptionCondition
InvalidOperationExceptionAn invalid secretKey was passed, or the assembly is not allowed to call methods from IRhinoAccountsManager
OperationCanceledExceptionThe operation was cancelled, either by internal decisions or because the cancellationToken was cancelled.
Remarks
If the OAuth 2 token is stored in the local cache, it will be removed from the cache as well.
See Also