IIdentityApiGetClaims Method
|
Get all values of a given claim in the current user claim collection.
Namespace: Casewhere.Runtime.DSL.ApiAssembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
SyntaxIList<string> GetClaims(
string type
)
Parameters
- type String
- Claim type
Return Value
IListStringA list of claims of the specified type
Examplevar identityApi = ctx.Use<IIdentityApi>();
var claimType = "ClaimType";
var claims = identityApi.GetClaims(claimType);
See Also