IRhinoAccountsManagerTryGetAuthTokens 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
SyntaxTuple<IOpenIDConnectToken, IOAuth2Token> TryGetAuthTokens(
string clientId,
IEnumerable<string> scope,
SecretKey secretKey
)
Function TryGetAuthTokens (
clientId As String,
scope As IEnumerable(Of String),
secretKey As SecretKey
) As Tuple(Of IOpenIDConnectToken, IOAuth2Token)
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,
IOAuth2TokenCached tokens matching the exact criteria passed, or null if none can be found matching the criteria.
Exceptions| Exception | Condition |
|---|
| InvalidOperationException | An invalid secretKey was passed, or the assembly is not allowed to call methods from IRhinoAccountsManager |
See Also