mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00
add key to login response from identity
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user