Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kerberos refactored to be federation provider. Support for Kerberos a…
…nd LDAP. Username/password authentication support with kerberos credentials. First step - KerberosFederationProvider Finished KerberosFederationProvider. Added support for username/password authentication with kerberos credentials Added Kerberos UI to LDAPFederationProvider Fixes
- Loading branch information
Showing
51 changed files
with
1,394 additions
and
427 deletions.
There are no files selected for viewing
30 changes: 0 additions & 30 deletions
30
broker/kerberos/src/main/java/org/keycloak/broker/kerberos/KerberosConstants.java
This file was deleted.
Oops, something went wrong.
147 changes: 0 additions & 147 deletions
147
broker/kerberos/src/main/java/org/keycloak/broker/kerberos/KerberosIdentityProvider.java
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
...r/kerberos/src/main/java/org/keycloak/broker/kerberos/KerberosIdentityProviderConfig.java
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
.../kerberos/src/main/java/org/keycloak/broker/kerberos/KerberosIdentityProviderFactory.java
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...src/main/resources/META-INF/services/org.keycloak.broker.provider.IdentityProviderFactory
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
federation/kerberos/src/main/java/org/keycloak/federation/kerberos/CommonKerberosConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,46 @@ | |||
package org.keycloak.federation.kerberos; | |||
|
|||
import java.util.Map; | |||
|
|||
import org.keycloak.models.UserFederationProviderModel; | |||
import org.keycloak.models.utils.KerberosConstants; | |||
|
|||
/** | |||
* Common configuration useful for all providers | |||
* | |||
* @author <a href="mailto:mposolda@redhat.com">Marek Posolda</a> | |||
*/ | |||
public abstract class CommonKerberosConfig { | |||
|
|||
private final UserFederationProviderModel providerModel; | |||
|
|||
public CommonKerberosConfig(UserFederationProviderModel userFederationProvider) { | |||
this.providerModel = userFederationProvider; | |||
} | |||
|
|||
// Should be always true for KerberosFederationProvider | |||
public boolean isAllowKerberosAuthentication() { | |||
return Boolean.valueOf(getConfig().get(KerberosConstants.ALLOW_KERBEROS_AUTHENTICATION)); | |||
} | |||
|
|||
public String getKerberosRealm() { | |||
return getConfig().get("kerberosRealm"); | |||
} | |||
|
|||
public String getServerPrincipal() { | |||
return getConfig().get("serverPrincipal"); | |||
} | |||
|
|||
public String getKeyTab() { | |||
return getConfig().get("keyTab"); | |||
} | |||
|
|||
public boolean getDebug() { | |||
return Boolean.valueOf(getConfig().get("debug")); | |||
} | |||
|
|||
protected Map<String, String> getConfig() { | |||
return providerModel.getConfig(); | |||
} | |||
|
|||
} |
Oops, something went wrong.