Click or drag to resize

RhinoAccountsManagerTryGetAuthTokens Method (String, IEnumerableString, SecretKey)

Attempts to return cached auth tokens that match the given criteria if any have been stored in cache.

Namespace:  Rhino.Runtime.RhinoAccounts
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 7.0
Syntax
public static Tuple<IOpenIDConnectToken, IOAuth2Token> TryGetAuthTokens(
	string clientId,
	IEnumerable<string> scope,
	SecretKey secretKey
)

Parameters

clientId
Type: SystemString
The unique id of the client registered in Rhino Accounts.
scope
Type: System.Collections.GenericIEnumerableString
The scope desired for the tokens. Valid scope values can be found in the Rhino Accounts documentation.
secretKey
Type: Rhino.Runtime.RhinoAccountsSecretKey
A special key that was handed to you in ExecuteProtectedCodeAsync(FuncSecretKey, Task)

Return Value

Type: TupleIOpenIDConnectToken, IOAuth2Token
Cached tokens matching the exact criteria passed, or null if none can be found matching the criteria.
Exceptions
ExceptionCondition
InvalidOperationExceptionAn invalid secretKey was passed, or the assembly is not allowed to call methods from IRhinoAccountsManager
See Also