You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Microsoft.IdentityModel.JsonWebTokens/GlobalSuppressions.cs
+5
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,11 @@
12
12
[assembly:SuppressMessage("Performance","CA1822:Mark members as static",Justification="Previously released as non-static",Scope="member",Target="~M:Microsoft.IdentityModel.JsonWebTokens.JsonWebTokenHandler.EncryptToken(System.String,Microsoft.IdentityModel.Tokens.EncryptingCredentials,System.Collections.Generic.IDictionary{System.String,System.Object})~System.String")]
13
13
[assembly:SuppressMessage("Usage","CA2211:Non-constant fields should not be visible",Justification="Previously released as visible field",Scope="member",Target="~F:Microsoft.IdentityModel.JsonWebTokens.JwtTokenUtilities.RegexJws")]
14
14
[assembly:SuppressMessage("Usage","CA2211:Non-constant fields should not be visible",Justification="Previously released as visible field",Scope="member",Target="~F:Microsoft.IdentityModel.JsonWebTokens.JwtTokenUtilities.RegexJwe")]
15
+
[assembly:SuppressMessage("Usage","CA2211:Non-constant fields should not be visible",Justification="Breaking change",Scope="member",Target="~F:Microsoft.IdentityModel.JsonWebTokens.JsonWebTokenHandler.DefaultInboundClaimTypeMap")]
16
+
[assembly:SuppressMessage("Usage","CA2211:Non-constant fields should not be visible",Justification="Breaking change",Scope="member",Target="~F:Microsoft.IdentityModel.JsonWebTokens.JsonWebTokenHandler.DefaultMapInboundClaims")]
17
+
[assembly:SuppressMessage("Usage","CA2211:Non-constant fields should not be visible",Justification="Breaking change",Scope="member",Target="~F:Microsoft.IdentityModel.JsonWebTokens.JsonWebTokenHandler.DefaultOutboundClaimTypeMap")]
18
+
[assembly:SuppressMessage("Usage","CA2227:Collection properties should be read only",Justification="Breaking change",Scope="member",Target="~P:Microsoft.IdentityModel.JsonWebTokens.JsonWebTokenHandler.InboundClaimTypeMap")]
19
+
[assembly:SuppressMessage("Usage","CA2227:Collection properties should be read only",Justification="Breaking change",Scope="member",Target="~P:Microsoft.IdentityModel.JsonWebTokens.JsonWebTokenHandler.OutboundClaimTypeMap")]
15
20
[assembly:SuppressMessage("Design","CA1052:Static holder types should be Static or NotInheritable",Justification="Previously released as non-static/inheritable",Scope="type",Target="~T:Microsoft.IdentityModel.JsonWebTokens.JwtTokenUtilities")]
16
21
[assembly:SuppressMessage("Design","CA1031:Do not catch general exception types",Justification="Used as Try method",Scope="member",Target="~M:Microsoft.IdentityModel.JsonWebTokens.JsonWebToken.TryGetPayloadValue``1(System.String,``0@)~System.Boolean")]
17
22
[assembly:SuppressMessage("Design","CA1031:Do not catch general exception types",Justification="Used as Try method",Scope="member",Target="~M:Microsoft.IdentityModel.JsonWebTokens.JsonWebToken.TryGetHeaderValue``1(System.String,``0@)~System.Boolean")]
/// Gets the type of the <see cref="JsonWebToken"/>.
35
61
/// </summary>
@@ -39,6 +65,64 @@ public Type TokenType
39
65
get{returntypeof(JsonWebToken);}
40
66
}
41
67
68
+
/// <summary>
69
+
/// Gets or sets the property name of <see cref="Claim.Properties"/> the will contain the original JSON claim 'name' if a mapping occurred when the <see cref="Claim"/>(s) were created.
70
+
/// </summary>
71
+
/// <exception cref="ArgumentException">If <see cref="string"/>.IsNullOrWhiteSpace('value') is true.</exception>
/// Gets or sets the <see cref="MapInboundClaims"/> property which is used when determining whether or not to map claim types that are extracted when validating a <see cref="JsonWebToken"/>.
90
+
/// <para>If this is set to true, the <see cref="Claim.Type"/> is set to the JSON claim 'name' after translating using this mapping. Otherwise, no mapping occurs.</para>
/// Gets or sets the <see cref="InboundClaimTypeMap"/> which is used when setting the <see cref="Claim.Type"/> for claims in the <see cref="ClaimsPrincipal"/> extracted when validating a <see cref="JsonWebToken"/>.
109
+
/// <para>The <see cref="Claim.Type"/> is set to the JSON claim 'name' after translating using this mapping.</para>
110
+
/// <para>The default value is ClaimTypeMapping.InboundClaimTypeMap.</para>
111
+
/// </summary>
112
+
/// <exception cref="ArgumentNullException">'value' is null.</exception>
0 commit comments