mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 21:48:12 -05:00
tweaks to tokens
This commit is contained in:
parent
97ad8bd943
commit
d42a47e5f0
@ -16,7 +16,7 @@ namespace Bit.Core.IdentityServer
|
|||||||
JwtClaimTypes.Email,
|
JwtClaimTypes.Email,
|
||||||
JwtClaimTypes.EmailVerified,
|
JwtClaimTypes.EmailVerified,
|
||||||
"sstamp", // security stamp
|
"sstamp", // security stamp
|
||||||
"plan",
|
"premium",
|
||||||
"device",
|
"device",
|
||||||
"orgowner",
|
"orgowner",
|
||||||
"orgadmin",
|
"orgadmin",
|
||||||
|
@ -42,9 +42,9 @@ namespace Bit.Core.IdentityServer
|
|||||||
{
|
{
|
||||||
newClaims.AddRange(new List<Claim>
|
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.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)
|
new Claim(_identityOptions.ClaimsIdentity.SecurityStampClaimType, user.SecurityStamp)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user