Fix Kerberos test broken in some environments
This commit is contained in:
parent
b234db4b34
commit
fee1f6f61a
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue