Skip to content

Commit e3af7a1

Browse files
committed
rename claim mappings
1 parent 8bf7c68 commit e3af7a1

File tree

1 file changed

+2
-2
lines changed
  • aspnetcore/security/authentication/configure-oidc-web-authentication/sample/oidc-net8/RazorPageOidc

1 file changed

+2
-2
lines changed

aspnetcore/security/authentication/configure-oidc-web-authentication/sample/oidc-net8/RazorPageOidc/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@
7777
// identity provider uses different claim types.
7878

7979
options.MapInboundClaims = false;
80-
options.TokenValidationParameters.NameClaimType = JwtRegisteredClaimNames.Name;
81-
options.TokenValidationParameters.RoleClaimType = "roles";
80+
options.TokenValidationParameters.NameClaimType = "name";
81+
options.TokenValidationParameters.RoleClaimType = "role";
8282
// ........................................................................
8383

8484
options.SaveTokens = true;

0 commit comments

Comments
 (0)