Click or drag to resize

IIdentityApiRemoveClaim Method

Remove a given claim in the current user claim collection.

Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
Syntax
C#
void RemoveClaim(
	string type,
	string value = null
)

Parameters

type  String
Claim type
value  String  (Optional)
Claim value (If this parameter has a value, it will be deleted; otherwise, all values of this claim type will be deleted)
Example
C#
var identityApi = ctx.Use<IIdentityApi>();
var claimType = "ClaimType";
var claimValue = ""; // Optional
identityApi.RemoveClaim(claimType, claimValue);
See Also