mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-09 23:12:06 -03:30
fix: generalizing the misconfiguration detection. (#43500)
closes: #43166 Signed-off-by: Steve Hawkins <shawkins@redhat.com>
This commit is contained in:
parent
eed9d70ec0
commit
49305d1567
@ -104,11 +104,9 @@ public final class HostnameV2PropertyMappers implements PropertyMapperGrouping {
|
||||
// else might be allowable if HOST is overwritten
|
||||
}
|
||||
|
||||
if (proxyHeaders == null && !url.getPath().isEmpty()
|
||||
&& Boolean.valueOf(Configuration.getConfigValue(HostnameV2Options.HOSTNAME_BACKCHANNEL_DYNAMIC).getValue())
|
||||
&& !normalizePath(url.getPath()).equals(
|
||||
if (proxyHeaders == null && !url.getPath().isEmpty() && !normalizePath(url.getPath()).equals(
|
||||
normalizePath(Configuration.getConfigValue(HttpOptions.HTTP_RELATIVE_PATH).getValue()))) {
|
||||
warn.accept("Likely misconfiguration detected. When using a `hostname` that includes a path that does not match the `http-relative-path` you must use `proxy-headers` to properly detect backchannel requests.");
|
||||
warn.accept("Likely misconfiguration detected. When using a `hostname` that includes a path that does not match the `http-relative-path` you must use `proxy-headers`");
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user