KEYCLOAK-3842 SPNEGO: Support for multiple kerberos realms

This commit is contained in:
Hisanobu Okuda 2017-11-16 17:03:08 +09:00 committed by Marek Posolda
parent 2a2e6c839b
commit 3d0512efd8

View file

@ -115,9 +115,6 @@ public class SPNEGOAuthenticator {
public String getAuthenticatedUsername() {
String[] tokens = authenticatedKerberosPrincipal.split("@");
String username = tokens[0];
if (!tokens[1].equalsIgnoreCase(kerberosConfig.getKerberosRealm())) {
throw new IllegalStateException("Invalid kerberos realm. Realm from the ticket: " + tokens[1] + ", configured realm: " + kerberosConfig.getKerberosRealm());
}
return username;
}