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:
parent
6b3a25571b
commit
9ed677532c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user