From 9a10382b461ecbf265c86af9cd596237729453b6 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 24 Jan 2017 22:23:11 -0500 Subject: [PATCH] formatting fixes --- src/Api/IdentityServer/ProfileService.cs | 3 ++- src/Api/IdentityServer/ResourceOwnerPasswordValidator.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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())