diff --git a/src/Api/IdentityServer/ProfileService.cs b/src/Api/IdentityServer/ProfileService.cs index aabcbe076..c22cee368 100644 --- a/src/Api/IdentityServer/ProfileService.cs +++ b/src/Api/IdentityServer/ProfileService.cs @@ -35,7 +35,8 @@ namespace Bit.Api.IdentityServer var user = await GetUserAsync(context.Subject); if(user != null) { - claims.AddRange(new List { + claims.AddRange(new List + { new Claim("plan", "0"), // free plan hard coded for now new Claim("sstamp", user.SecurityStamp), new Claim("email", user.Email), diff --git a/src/Api/IdentityServer/ResourceOwnerPasswordValidator.cs b/src/Api/IdentityServer/ResourceOwnerPasswordValidator.cs index b60e5ca92..c8dd90f3d 100644 --- a/src/Api/IdentityServer/ResourceOwnerPasswordValidator.cs +++ b/src/Api/IdentityServer/ResourceOwnerPasswordValidator.cs @@ -112,7 +112,8 @@ namespace Bit.Api.IdentityServer private void BuildSuccessResult(User user, ResourceOwnerPasswordValidationContext context, Device device) { - var claims = new List { + var claims = new List + { // Deprecated claims for backwards compatability new Claim(ClaimTypes.AuthenticationMethod, "Application"), new Claim(_identityOptions.ClaimsIdentity.UserIdClaimType, user.Id.ToString())