mirror of
https://github.com/bitwarden/server.git
synced 2025-04-08 06:28:14 -05: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);
|
customResponse.Add("PrivateKey", user.PrivateKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!string.IsNullOrWhiteSpace(user.Key))
|
||||||
|
{
|
||||||
|
customResponse.Add("Key", user.Key);
|
||||||
|
}
|
||||||
|
|
||||||
context.Result = new GrantValidationResult(user.Id.ToString(), "Application",
|
context.Result = new GrantValidationResult(user.Id.ToString(), "Application",
|
||||||
identityProvider: "bitwarden",
|
identityProvider: "bitwarden",
|
||||||
claims: claims.Count > 0 ? claims : null,
|
claims: claims.Count > 0 ? claims : null,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user