Browse Source

Fixed bearer token not grabbing username.

tags/3.0.0^2
Teknikode 11 months ago
parent
commit
2527c8accc
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      Teknik/Startup.cs

+ 3
- 0
Teknik/Startup.cs View File

@@ -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