IIdentityApiGetClaims Method

Get all values of a given claim in the current user claim collection.

Definition

Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
C#
IList<string> GetClaims(
	string type
)

Parameters

type  String
Claim type

Return Value

IListString
A list of claims of the specified type

Example

C#
                    var identityApi = ctx.Use<IIdentityApi>();
var claimType = "ClaimType";
var claims = identityApi.GetClaims(claimType);
                  

See Also