mirror of
https://github.com/bitwarden/server.git
synced 2024-12-23 17:07:42 +01:00
tweaks to tokens
This commit is contained in:
parent
97ad8bd943
commit
d42a47e5f0
@ -16,7 +16,7 @@ namespace Bit.Core.IdentityServer
|
||||
JwtClaimTypes.Email,
|
||||
JwtClaimTypes.EmailVerified,
|
||||
"sstamp", // security stamp
|
||||
"plan",
|
||||
"premium",
|
||||
"device",
|
||||
"orgowner",
|
||||
"orgadmin",
|
||||
|
@ -42,9 +42,9 @@ namespace Bit.Core.IdentityServer
|
||||
{
|
||||
newClaims.AddRange(new List<Claim>
|
||||
{
|
||||
new Claim("plan", "0"), // free plan hard coded for now
|
||||
new Claim("premium", user.Premium ? "true" : "false", ClaimValueTypes.Boolean),
|
||||
new Claim(JwtClaimTypes.Email, user.Email),
|
||||
new Claim(JwtClaimTypes.EmailVerified, user.EmailVerified ? "true" : "false"),
|
||||
new Claim(JwtClaimTypes.EmailVerified, user.EmailVerified ? "true" : "false", ClaimValueTypes.Boolean),
|
||||
new Claim(_identityOptions.ClaimsIdentity.SecurityStampClaimType, user.SecurityStamp)
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user