Fix Kerberos test broken in some environments

This commit is contained in:
mposolda 2016-02-11 16:49:09 +01:00
parent b234db4b34
commit fee1f6f61a

View file

@ -48,7 +48,7 @@ public class KeycloakSPNegoSchemeFactory extends SPNegoSchemeFactory {
public KeycloakSPNegoSchemeFactory(CommonKerberosConfig kerberosConfig) { public KeycloakSPNegoSchemeFactory(CommonKerberosConfig kerberosConfig) {
super(true); super(true, false);
this.kerberosConfig = kerberosConfig; this.kerberosConfig = kerberosConfig;
} }
@ -61,14 +61,14 @@ public class KeycloakSPNegoSchemeFactory extends SPNegoSchemeFactory {
@Override @Override
public AuthScheme newInstance(HttpParams params) { public AuthScheme newInstance(HttpParams params) {
return new KeycloakSPNegoScheme(isStripPort()); return new KeycloakSPNegoScheme(isStripPort(), isUseCanonicalHostname());
} }
public class KeycloakSPNegoScheme extends SPNegoScheme { public class KeycloakSPNegoScheme extends SPNegoScheme {
public KeycloakSPNegoScheme(boolean stripPort) { public KeycloakSPNegoScheme(boolean stripPort, boolean useCanonicalHostname) {
super(stripPort); super(stripPort, useCanonicalHostname);
} }