mirror of
https://github.com/bitwarden/server.git
synced 2024-11-28 13:15:12 +01:00
formatting fixes
This commit is contained in:
parent
8a83600e52
commit
9a10382b46
@ -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),
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user