From 1435788b26521082d4017cd5deacca45ef732ee2 Mon Sep 17 00:00:00 2001 From: Patrick Pimentel Date: Fri, 13 Feb 2026 17:18:19 -0500 Subject: [PATCH] fix(redirect): [PM-30810] Https Redirection for Cloud Users - Took fix recommended by claude. --- .../Auth/Identity/TokenProviders/DuoUniversalTokenService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Auth/Identity/TokenProviders/DuoUniversalTokenService.cs b/src/Core/Auth/Identity/TokenProviders/DuoUniversalTokenService.cs index 9bc5a496e0..647ab16150 100644 --- a/src/Core/Auth/Identity/TokenProviders/DuoUniversalTokenService.cs +++ b/src/Core/Auth/Identity/TokenProviders/DuoUniversalTokenService.cs @@ -166,7 +166,7 @@ public class DuoUniversalTokenService( } var normalizedHost = host.ToLowerInvariant(); - return Constants.BitwardenCloudDomains.Any(d => normalizedHost.EndsWith(d)); + return Constants.BitwardenCloudDomains.Any(d => normalizedHost == d || normalizedHost.EndsWith("." + d)); } private static DuoDeeplinkScheme? GetDeeplinkSchemeOverride(HttpContext httpContext)