RhinoCommon API
IRhinoAccountsManagerTryGetAuthTokens Method (String, 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

Tuple<IOpenIDConnectToken, IOAuth2Token> TryGetAuthTokens( string clientId, SecretKey secretKey )
Function TryGetAuthTokens ( clientId As String, secretKey As SecretKey ) As Tuple(Of IOpenIDConnectToken, IOAuth2Token)
Parameters
- clientId
- Type: SystemString
The unique id of the client registered in Rhino Accounts. - secretKey
- Type: Rhino.Runtime.RhinoAccountsSecretKey
A special key that was handed to you in ExecuteProtectedCodeAsync(FuncSecretKey, Task)
Return Value
Type: TupleIOpenIDConnectToken, IOAuth2TokenCached tokens matching the exact criteria passed, or null if none can be found matching the criteria.

Exception | Condition |
---|---|
InvalidOperationException | An invalid secretKey was passed, or the assembly is not allowed to call methods from IRhinoAccountsManager |
