mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 05:13:18 -07:00
Fixed the user token issue #865
This commit is contained in:
parent
24e424f004
commit
0d1ee148c7
1 changed files with 2 additions and 1 deletions
|
@ -61,7 +61,8 @@ namespace Ombi.Controllers
|
|||
var claims = new List<Claim>
|
||||
{
|
||||
new Claim(JwtRegisteredClaimNames.Sub, user.UserName),
|
||||
new Claim("name", user.UserName),
|
||||
new Claim(ClaimTypes.NameIdentifier, user.Id),
|
||||
new Claim(ClaimTypes.Name, user.UserName),
|
||||
new Claim(JwtRegisteredClaimNames.Jti, Guid.NewGuid().ToString())
|
||||
};
|
||||
claims.AddRange(roles.Select(role => new Claim("role", role)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue