diff --git a/src/Microsoft.IdentityModel.JsonWebTokens/JwtRegisteredClaimNames.cs b/src/Microsoft.IdentityModel.JsonWebTokens/JwtRegisteredClaimNames.cs
index e9f9094578..aa9201dc96 100644
--- a/src/Microsoft.IdentityModel.JsonWebTokens/JwtRegisteredClaimNames.cs
+++ b/src/Microsoft.IdentityModel.JsonWebTokens/JwtRegisteredClaimNames.cs
@@ -2,7 +2,6 @@
// Licensed under the MIT License.
using System;
-using System.Text;
namespace Microsoft.IdentityModel.JsonWebTokens
{
@@ -10,6 +9,7 @@ namespace Microsoft.IdentityModel.JsonWebTokens
/// List of registered claims from different sources
/// https://datatracker.ietf.org/doc/html/rfc7519#section-4
/// http://openid.net/specs/openid-connect-core-1_0.html#IDToken
+ /// https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
///
public struct JwtRegisteredClaimNames
{
@@ -24,6 +24,11 @@ public struct JwtRegisteredClaimNames
///
public const string Acr = "acr";
+ ///
+ /// https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims //TODO: clarify if this should be a JSON obj based on spec?
+ ///
+ public const string Address = "address";
+
///
/// http://openid.net/specs/openid-connect-core-1_0.html#IDToken
///
@@ -64,6 +69,11 @@ public struct JwtRegisteredClaimNames
///
public const string Email = "email";
+ ///
+ /// https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims //TODO: clarify if this should be a Boolean based on spec?
+ ///
+ public const string EmailVerified = "email_verified";
+
///
/// https://datatracker.ietf.org/doc/html/rfc7519#section-4
///
@@ -99,6 +109,17 @@ public struct JwtRegisteredClaimNames
///
public const string Jti = "jti";
+
+ ///
+ /// https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
+ ///
+ public const string Locale = "locale";
+
+ ///
+ /// https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
+ ///
+ public const string MiddleName = "middle_name";
+
///
/// https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
///
@@ -108,6 +129,11 @@ public struct JwtRegisteredClaimNames
///
public const string NameId = "nameid";
+ ///
+ /// https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
+ ///
+ public const string Nickname = "nickname";
+
///
/// https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest
///
@@ -129,9 +155,25 @@ public struct JwtRegisteredClaimNames
public const string PhoneNumberVerified = "phone_number_verified";
///
+ /// https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
+ ///
+ public const string Picture = "picture";
+
+ ///
+ /// TODO:Add description?
///
public const string Prn = "prn";
+ ///
+ /// https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
+ ///
+ public const string PreferredUsername = "preferred_username";
+
+ ///
+ /// https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
+ ///
+ public const string Profile = "profile";
+
///
/// http://openid.net/specs/openid-connect-frontchannel-1_0.html#OPLogout
///
@@ -152,8 +194,19 @@ public struct JwtRegisteredClaimNames
public const string UniqueName = "unique_name";
///
+ /// https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
+ ///
+ public const string UpdatedAt = "updated_at";
+
+ ///
+ /// https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
///
public const string Website = "website";
+
+ ///
+ /// https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
+ ///
+ public const string ZoneInfo = "zoneinfo";
}
///
diff --git a/src/System.IdentityModel.Tokens.Jwt/JwtRegisteredClaimNames.cs b/src/System.IdentityModel.Tokens.Jwt/JwtRegisteredClaimNames.cs
index bfdfda2d18..d92fc16406 100644
--- a/src/System.IdentityModel.Tokens.Jwt/JwtRegisteredClaimNames.cs
+++ b/src/System.IdentityModel.Tokens.Jwt/JwtRegisteredClaimNames.cs
@@ -24,6 +24,11 @@ public struct JwtRegisteredClaimNames
///
public const string Amr = Microsoft.IdentityModel.JsonWebTokens.JwtRegisteredClaimNames.Amr;
+ ///
+ /// https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims //TODO: clarify if this should be a JSON obj based on spec?
+ ///
+ public const string Address = Microsoft.IdentityModel.JsonWebTokens.JwtRegisteredClaimNames.Address;
+
///
/// https://datatracker.ietf.org/doc/html/rfc7519#section-4
///
@@ -59,6 +64,11 @@ public struct JwtRegisteredClaimNames
///
public const string Email = Microsoft.IdentityModel.JsonWebTokens.JwtRegisteredClaimNames.Email;
+ ///
+ /// https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims //TODO: clarify if this should be a Boolean based on spec?
+ ///
+ public const string EmailVerified = Microsoft.IdentityModel.JsonWebTokens.JwtRegisteredClaimNames.EmailVerified;
+
///
/// https://datatracker.ietf.org/doc/html/rfc7519#section-4
///
@@ -94,6 +104,16 @@ public struct JwtRegisteredClaimNames
///
public const string Jti = Microsoft.IdentityModel.JsonWebTokens.JwtRegisteredClaimNames.Jti;
+ ///
+ /// https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
+ ///
+ public const string Locale = Microsoft.IdentityModel.JsonWebTokens.JwtRegisteredClaimNames.Locale;
+
+ ///
+ /// https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
+ ///
+ public const string MiddleName = Microsoft.IdentityModel.JsonWebTokens.JwtRegisteredClaimNames.MiddleName;
+
///
/// https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
///
@@ -103,6 +123,11 @@ public struct JwtRegisteredClaimNames
///
public const string NameId = Microsoft.IdentityModel.JsonWebTokens.JwtRegisteredClaimNames.NameId;
+ ///
+ /// https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
+ ///
+ public const string Nickname = Microsoft.IdentityModel.JsonWebTokens.JwtRegisteredClaimNames.Nickname;
+
///
/// https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest
///
@@ -113,10 +138,25 @@ public struct JwtRegisteredClaimNames
///
public const string Nbf = Microsoft.IdentityModel.JsonWebTokens.JwtRegisteredClaimNames.Nbf;
+ ///
+ /// https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
+ ///
+ public const string Picture = Microsoft.IdentityModel.JsonWebTokens.JwtRegisteredClaimNames.Picture;
+
///
///
public const string Prn = Microsoft.IdentityModel.JsonWebTokens.JwtRegisteredClaimNames.Prn;
+ ///
+ /// https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
+ ///
+ public const string PreferredUsername = Microsoft.IdentityModel.JsonWebTokens.JwtRegisteredClaimNames.PreferredUsername;
+
+ ///
+ /// https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
+ ///
+ public const string Profile = Microsoft.IdentityModel.JsonWebTokens.JwtRegisteredClaimNames.Profile;
+
///
/// http://openid.net/specs/openid-connect-frontchannel-1_0.html#OPLogout
///
@@ -136,8 +176,18 @@ public struct JwtRegisteredClaimNames
///
public const string UniqueName = Microsoft.IdentityModel.JsonWebTokens.JwtRegisteredClaimNames.UniqueName;
+ ///
+ /// https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
+ ///
+ public const string UpdatedAt = Microsoft.IdentityModel.JsonWebTokens.JwtRegisteredClaimNames.UpdatedAt;
+
///
///
public const string Website = Microsoft.IdentityModel.JsonWebTokens.JwtRegisteredClaimNames.Website;
+
+ ///
+ /// https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
+ ///
+ public const string ZoneInfo = Microsoft.IdentityModel.JsonWebTokens.JwtRegisteredClaimNames.ZoneInfo;
}
}