Class ClaimsUtilities
This utility class offers methods to aid in working with claims.
Inheritance
System.Object
ClaimsUtilities
Namespace: Dangl.Identity.Client.Mvc
Assembly: Dangl.Identity.Client.Mvc.dll
Syntax
public static class ClaimsUtilities : object
Properties
| Improve this Doc View SourceClaimTypesToIgnore
This is a list of claim types that should be ignored when working with Cookie logins to keep the size of the cookie manageable.
Declaration
public static IReadOnlyList<string> ClaimTypesToIgnore { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<System.String> |
Methods
| Improve this Doc View SourceTransformClaims(IEnumerable<Claim>)
This will remove any ignored claims as defined in ClaimTypesToIgnore
and perform necessary mapping actions, if required, via
Declaration
public static List<Claim> TransformClaims(IEnumerable<Claim> claims)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<Claim> | claims |
Returns
| Type | Description |
|---|---|
| List<Claim> |