1
0
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:
Kyle Spearrin 2017-07-01 23:20:30 -04:00
parent 97ad8bd943
commit d42a47e5f0
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ namespace Bit.Core.IdentityServer
JwtClaimTypes.Email,
JwtClaimTypes.EmailVerified,
"sstamp", // security stamp
"plan",
"premium",
"device",
"orgowner",
"orgadmin",

View File

@ -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)
});