IIdentityApiRemoveClaim Method

Remove 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#
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