IIdentity Api Interface
Provide the methods for working with user identity
Definition
Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
C#
public interface IIdentityApiMethods
| CheckUserSessionValidity |
Check user session still valid/active
ExampleC# |
| CreateAuthorizationCode |
To create an authorization code to serve for getting the access token later.
ExampleC# |
| GetClaims | Get all values of a given claim in the current user claim collection. |
| GetExpiredTime |
Get the user session expired time
ExampleC# |
| GetUserClaims | Get the claim collection of the current user. |
| GetUserClaimsBySPIdPSession | Get the claim collection of a given SPIDPSessionId |
| GetUserClaimsByUserSessionId | Get the claim collection of a given UserSessionId |
| Impersonate |
To pretend to be someone else by changing another username
ExampleC# |
| RemoveClaim | Remove a given claim in the current user claim collection. |
| SetClaim |
Set the new claim into identity
ExampleC# |
| SetClaimForSPIdPSession |
Update the claim set of the given SPIdPSession and this update will affect to the access token later
ExampleC# |
| SetClaimForUserSession |
Update the claim set of the given UserSession and this update will affect to the access token right after
ExampleC# |
| TerminateAccessToken |
To terminate all user sessions related to given access token.
ExampleC# |
| TerminateUserSession(Guid) |
To terminate the user session of given userSessionId.
ExampleC# |
| TerminateUserSession(String) |
To terminate the user session of given username.
ExampleC# |
| TryToGetUserToken | Try to get the user token from the given access token. |