Skip to content

Commit

Permalink
add more claims
Browse files Browse the repository at this point in the history
  • Loading branch information
leastprivilege committed Aug 29, 2023
1 parent 48799ac commit a8b47e6
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/Pages/TestUsers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,25 @@ public static List<TestUser> Users
new Claim(JwtClaimTypes.Name, "Alice Smith"),
new Claim(JwtClaimTypes.GivenName, "Alice"),
new Claim(JwtClaimTypes.FamilyName, "Smith"),

new Claim(JwtClaimTypes.Email, "AliceSmith@email.com"),
new Claim(JwtClaimTypes.EmailVerified, "true", ClaimValueTypes.Boolean),
new Claim(JwtClaimTypes.WebSite, "https://alice.com"),
new Claim(JwtClaimTypes.PhoneNumber, "123"),
new Claim(JwtClaimTypes.PhoneNumberVerified, "true", ClaimValueTypes.Boolean),
new Claim(JwtClaimTypes.Address, JsonSerializer.Serialize(address), IdentityServerConstants.ClaimValueTypes.Json)
new Claim(JwtClaimTypes.Address, JsonSerializer.Serialize(address), IdentityServerConstants.ClaimValueTypes.Json),

// for completeness
new Claim(JwtClaimTypes.ZoneInfo, "Europe/Paris"),
new Claim(JwtClaimTypes.BirthDate, "1973-11-12"),
new Claim(JwtClaimTypes.Gender, "female"),
new Claim(JwtClaimTypes.Profile, "https://duendesoftware.com/alice"),
new Claim(JwtClaimTypes.PreferredUserName, "alice"),
new Claim(JwtClaimTypes.MiddleName, "Mary"),
new Claim(JwtClaimTypes.MiddleName, "A"),
new Claim(JwtClaimTypes.Locale, "fr-CA"),
new Claim(JwtClaimTypes.Picture, "https://duendesoftware.com/alice/picture"),
new Claim(JwtClaimTypes.UpdatedAt, "1693317283", ClaimValueTypes.Integer),
}
}
};
Expand Down

0 comments on commit a8b47e6

Please sign in to comment.