KEYCLOAK-3842 SPNEGO: Support for multiple kerberos realms
This commit is contained in:
parent
2a2e6c839b
commit
3d0512efd8
1 changed files with 0 additions and 3 deletions
|
@ -115,9 +115,6 @@ public class SPNEGOAuthenticator {
|
||||||
public String getAuthenticatedUsername() {
|
public String getAuthenticatedUsername() {
|
||||||
String[] tokens = authenticatedKerberosPrincipal.split("@");
|
String[] tokens = authenticatedKerberosPrincipal.split("@");
|
||||||
String username = tokens[0];
|
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;
|
return username;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue