1
0
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:
Thomas Rittson 2021-11-16 06:54:28 +10:00 committed by GitHub
parent c660f8bf00
commit cdb622d4aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,8 @@ namespace Bit.Core.IdentityServer
if (context.Result.ValidatedRequest.GrantType == "client_credentials") if (context.Result.ValidatedRequest.GrantType == "client_credentials")
{ {
if (user.UsesKeyConnector) { 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; context.Result.CustomResponse["ResetMasterPassword"] = false;
} }
return; return;