diff --git a/src/Core/IdentityServer/ApiResources.cs b/src/Core/IdentityServer/ApiResources.cs index f6910be1aa..88d50d57a8 100644 --- a/src/Core/IdentityServer/ApiResources.cs +++ b/src/Core/IdentityServer/ApiResources.cs @@ -16,7 +16,7 @@ namespace Bit.Core.IdentityServer JwtClaimTypes.Email, JwtClaimTypes.EmailVerified, "sstamp", // security stamp - "plan", + "premium", "device", "orgowner", "orgadmin", diff --git a/src/Core/IdentityServer/ProfileService.cs b/src/Core/IdentityServer/ProfileService.cs index 940c9adef4..1359e126cf 100644 --- a/src/Core/IdentityServer/ProfileService.cs +++ b/src/Core/IdentityServer/ProfileService.cs @@ -42,9 +42,9 @@ namespace Bit.Core.IdentityServer { newClaims.AddRange(new List { - 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) });