1
0
mirror of https://github.com/bitwarden/server synced 2025-12-27 05:33:17 +00:00

pm-24210-v2 (#6144)

This commit is contained in:
Jared Snider
2025-07-30 14:23:01 -04:00
committed by GitHub
parent b5991776f4
commit 64bf17684a
2 changed files with 16 additions and 4 deletions

View File

@@ -95,8 +95,7 @@ public class DeviceValidator(
// Device still unknown, but if we are in an auth request flow, this is not valid
// as we only support auth request authN requests on known devices
if (request.GrantType == PasswordGrantType && isAuthRequest &&
context is { TwoFactorRequired: false, SsoRequired: false })
if (request.GrantType == PasswordGrantType && isAuthRequest)
{
(context.ValidationErrorResult, context.CustomResponse) =
BuildDeviceErrorResult(DeviceValidationResultType.AuthRequestFlowUnknownDevice);