From cdb622d4aa9e06407bb58549cafef32a3d16a0b5 Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Tue, 16 Nov 2021 06:54:28 +1000 Subject: [PATCH] Add ApiUseKeyConnector flag to token response (#1710) --- src/Core/IdentityServer/CustomTokenRequestValidator.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Core/IdentityServer/CustomTokenRequestValidator.cs b/src/Core/IdentityServer/CustomTokenRequestValidator.cs index 0b9eb8c61..bc113b82a 100644 --- a/src/Core/IdentityServer/CustomTokenRequestValidator.cs +++ b/src/Core/IdentityServer/CustomTokenRequestValidator.cs @@ -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;