1
0
mirror of https://github.com/bitwarden/server synced 2026-02-22 04:13:43 +00:00

fix(redirect): [PM-30810] Https Redirection for Cloud Users - Took fix recommended by claude.

This commit is contained in:
Patrick Pimentel
2026-02-13 17:18:19 -05:00
parent 40a7662b7f
commit 1435788b26

View File

@@ -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)