JwtSecurityTokenHandler.OutboundClaimTypeMap Property

Gets or sets the OutboundClaimTypeMap that is used when creating a JwtSecurityToken from Claim(s).

The JSON claim 'name' value is set to Type after translating using this mapping.

Namespace:  System.IdentityModel.Tokens
Assembly:  System.IdentityModel.Tokens.Jwt (in System.IdentityModel.Tokens.Jwt.dll)

Syntax

'Declaration
Public Shared Property OutboundClaimTypeMap As IDictionary(Of String, String)
public static IDictionary<string, string> OutboundClaimTypeMap { get; set; }
public:
static property IDictionary<String^, String^>^ OutboundClaimTypeMap {
    IDictionary<String^, String^>^ get ();
    void set (IDictionary<String^, String^>^ value);
}
static member OutboundClaimTypeMap : IDictionary<string, string> with get, set
static function get OutboundClaimTypeMap () : IDictionary<String, String>
static function set OutboundClaimTypeMap (value : IDictionary<String, String>)

Property Value

Type: System.Collections.Generic.IDictionary<String, String>
Returns IDictionary<TKey, TValue>.

Exceptions

Exception Condition
ArgumentNullException

'value is null.

Remarks

This mapping is applied only when using AddClaim or AddClaims. Adding values directly will not result in translation.

.NET Framework Security

See Also

Reference

JwtSecurityTokenHandler Class

System.IdentityModel.Tokens Namespace