Class ClaimTypeRemapper
Utility for remapping claims from one type to another
Inheritance
System.Object
ClaimTypeRemapper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ImageVault.Common.Security
Assembly: ImageVault.Common.dll
Syntax
public class ClaimTypeRemapper
Constructors
ClaimTypeRemapper()
Declaration
public ClaimTypeRemapper()
Properties
ClaimTypeRemapDictionary
Dictionary for controlling claim type remapping
Declaration
public IDictionary<string, string> ClaimTypeRemapDictionary { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.String> |
OnlyIncludeMappedClaims
If set to true, only claims added in the ClaimTypeRemapDictionary will be included in the claim list
Declaration
public bool OnlyIncludeMappedClaims { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
AddClaimType(String, String[])
Adds support for mapping the supplied claimType with optional aliases
Declaration
public void AddClaimType(string claimType, params string[] aliases)
Parameters
Type | Name | Description |
---|---|---|
System.String | claimType | The claim type to add mapping for |
System.String[] | aliases | Optional list of aliases to remap from |
Remap(IEnumerable<Claim>)
Remaps the supplied claims according to the rules of the remapper
Declaration
public IEnumerable<Claim> Remap(IEnumerable<Claim> claims)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Security.Claims.Claim> | claims |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Security.Claims.Claim> |