IIdentityApiRemoveClaim Method
|
Remove 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
Syntaxvoid 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)
Examplevar identityApi = ctx.Use<IIdentityApi>();
var claimType = "ClaimType";
var claimValue = "";
identityApi.RemoveClaim(claimType, claimValue);
See Also