1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

Fixed bearer token not grabbing username.

This commit is contained in:
Uncled1023 2019-01-17 23:08:44 -08:00
parent 96100ec2cd
commit 2527c8accc

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 =>
{