Skip to content
Snippets Groups Projects
Commit 131a4fa8 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-6821 clean up

parent 69b05a62
Branches
Tags
No related merge requests found
......@@ -40,7 +40,6 @@ public class KeycloakGenericRemoteService {
} else {
return Optional.empty();
}
}
public Optional<RoleRepresentation> getClientRole(String roleName, String realClientId, String realm) {
......
......@@ -69,12 +69,10 @@ class KeycloakRealmService {
}
void createRealm(OzgCloudKeycloakRealmSpec realm, String realmName) {
LOG.debug("{}: Creating new realm...", realmName);
Optional.of(realm)
.map(mapper::map)
.map(realmRepresentation -> addRealmName(realmRepresentation, realmName))
// TODO dieser Filter kann vermutlich gelöscht werden, die Prüfung auf
// realmExists passiert bereits vorher
//.filter(realmRepresentation -> !keycloakGenericRemoteService.realmExists(realmName))
.ifPresent(realmRepresentation -> {
remoteService.createRealm(realmRepresentation);
addUserProfileAttributes(realmRepresentation);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment