federation iteration
This commit is contained in:
1 parent
b999c1e5b1
commit
148d494905
49 files changed
+2133
-143
No files matched your search
+55
@@ -0,0 +1,55 @@
|
||||
package org.keycloak.representations;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author <a href="mailto:mposolda@redhat.com">Marek Posolda</a>
|
||||
*/
|
||||
public class FederationProviderRepresentation {
|
||||
|
||||
private String id;
|
||||
private String providerName;
|
||||
private Map<String, String> config;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getProviderName() {
|
||||
return providerName;
|
||||
}
|
||||
|
||||
public void setProviderName(String providerName) {
|
||||
this.providerName = providerName;
|
||||
}
|
||||
|
||||
|
||||
public Map<String, String> getConfig() {
|
||||
return config;
|
||||
}
|
||||
|
||||
public void setConfig(Map<String, String> config) {
|
||||
this.config = config;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
FederationProviderRepresentation that = (FederationProviderRepresentation) o;
|
||||
|
||||
if (!id.equals(that.id)) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return id.hashCode();
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
package org.keycloak.representations.idm;
|
||||
|
||||
import org.keycloak.representations.FederationProviderRepresentation;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -56,6 +58,7 @@ public class RealmRepresentation {
|
||||
protected Map<String, String> smtpServer;
|
||||
protected Map<String, String> ldapServer;
|
||||
protected List<AuthenticationProviderRepresentation> authenticationProviders;
|
||||
protected List<FederationProviderRepresentation> federationProviders;
|
||||
protected String loginTheme;
|
||||
protected String accountTheme;
|
||||
protected String adminTheme;
|
||||
@@ -467,4 +470,12 @@ public class RealmRepresentation {
|
||||
public void setAuditListeners(List<String> auditListeners) {
|
||||
this.auditListeners = auditListeners;
|
||||
}
|
||||
|
||||
public List<FederationProviderRepresentation> getFederationProviders() {
|
||||
return federationProviders;
|
||||
}
|
||||
|
||||
public void setFederationProviders(List<FederationProviderRepresentation> federationProviders) {
|
||||
this.federationProviders = federationProviders;
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,7 @@ public class UserRepresentation {
|
||||
protected String lastName;
|
||||
protected String email;
|
||||
protected AuthenticationLinkRepresentation authenticationLink;
|
||||
protected String federationLink;
|
||||
protected Map<String, String> attributes;
|
||||
protected List<CredentialRepresentation> credentials;
|
||||
protected List<String> requiredActions;
|
||||
@@ -170,4 +171,12 @@ public class UserRepresentation {
|
||||
public void setApplicationRoles(Map<String, List<String>> applicationRoles) {
|
||||
this.applicationRoles = applicationRoles;
|
||||
}
|
||||
|
||||
public String getFederationLink() {
|
||||
return federationLink;
|
||||
}
|
||||
|
||||
public void setFederationLink(String federationLink) {
|
||||
this.federationLink = federationLink;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user