mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
Add ApiUseKeyConnector flag to token response (#1710)
This commit is contained in:
parent
c660f8bf00
commit
cdb622d4aa
@ -95,7 +95,8 @@ namespace Bit.Core.IdentityServer
|
||||
if (context.Result.ValidatedRequest.GrantType == "client_credentials")
|
||||
{
|
||||
if (user.UsesKeyConnector) {
|
||||
// KeyConnectorUrl is configured in the CLI client, just disable master password reset
|
||||
// KeyConnectorUrl is configured in the CLI client, we just need to tell the client to use it
|
||||
context.Result.CustomResponse["ApiUseKeyConnector"] = true;
|
||||
context.Result.CustomResponse["ResetMasterPassword"] = false;
|
||||
}
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user