Browse Source

Fixed bearer token not grabbing username.

core
Teknikode 4 years ago
parent
commit
2527c8accc
  1. 3
      Teknik/Startup.cs

3
Teknik/Startup.cs

@ -148,6 +148,9 @@ namespace Teknik @@ -148,6 +148,9 @@ namespace Teknik
options.ApiName = config.UserConfig.IdentityServerConfig.APIName;
options.ApiSecret = config.UserConfig.IdentityServerConfig.APISecret;
options.NameClaimType = "username";
options.RoleClaimType = JwtClaimTypes.Role;
})
.AddCookie(options =>
{

Loading…
Cancel
Save