1
0
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:
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.Email,
JwtClaimTypes.EmailVerified, JwtClaimTypes.EmailVerified,
"sstamp", // security stamp "sstamp", // security stamp
"plan", "premium",
"device", "device",
"orgowner", "orgowner",
"orgadmin", "orgadmin",

View File

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