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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user