1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00

formatting fixes

This commit is contained in:
Kyle Spearrin 2017-01-24 22:23:11 -05:00
parent 8a83600e52
commit 9a10382b46
2 changed files with 4 additions and 2 deletions

View File

@ -35,7 +35,8 @@ namespace Bit.Api.IdentityServer
var user = await GetUserAsync(context.Subject);
if(user != null)
{
claims.AddRange(new List<Claim> {
claims.AddRange(new List<Claim>
{
new Claim("plan", "0"), // free plan hard coded for now
new Claim("sstamp", user.SecurityStamp),
new Claim("email", user.Email),

View File

@ -112,7 +112,8 @@ namespace Bit.Api.IdentityServer
private void BuildSuccessResult(User user, ResourceOwnerPasswordValidationContext context, Device device)
{
var claims = new List<Claim> {
var claims = new List<Claim>
{
// Deprecated claims for backwards compatability
new Claim(ClaimTypes.AuthenticationMethod, "Application"),
new Claim(_identityOptions.ClaimsIdentity.UserIdClaimType, user.Id.ToString())