1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-22 21:51:22 +01:00

add key to login response from identity

This commit is contained in:
Kyle Spearrin 2017-05-31 10:10:08 -04:00
parent 6b3a25571b
commit 9ed677532c

View File

@ -128,6 +128,11 @@ namespace Bit.Core.IdentityServer
customResponse.Add("PrivateKey", user.PrivateKey);
}
if(!string.IsNullOrWhiteSpace(user.Key))
{
customResponse.Add("Key", user.Key);
}
context.Result = new GrantValidationResult(user.Id.ToString(), "Application",
identityProvider: "bitwarden",
claims: claims.Count > 0 ? claims : null,