Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Still working on the test. WIP

Michael Rademaker5a13a75448eb
diff --git a/manager/src/main/java/org/openremote/manager/security/ManagerKeycloakIdentityProvider.java b/manager/src/main/java/org/openremote/manager/security/ManagerKeycloakIdentityProvider.java
index eed2a7f8c..ee411d815 100644
--- a/manager/src/main/java/org/openremote/manager/security/ManagerKeycloakIdentityProvider.java
+++ b/manager/src/main/java/org/openremote/manager/security/ManagerKeycloakIdentityProvider.java
@@ -662,7 +662,7 @@ public class ManagerKeycloakIdentityProvider extends KeycloakIdentityProvider im
}
representation.setName(role.getName());
representation.setDescription(role.getDescription());
- representation.setClientRole(true);
+ representation.setClientRole(false);
if (representation.getId() == null) {
realmResource.roles().create(representation);
} else {
diff --git a/test/src/test/groovy/org/openremote/test/users/UserResourceTest.groovy b/test/src/test/groovy/org/openremote/test/users/UserResourceTest.groovy
index d613f2a07..2de7069d4 100644
--- a/test/src/test/groovy/org/openremote/test/users/UserResourceTest.groovy
+++ b/test/src/test/groovy/org/openremote/test/users/UserResourceTest.groovy
@@ -181,8 +181,8 @@ class UserResourceTest extends Specification implements ManagerContainerTrait {
// roles.find {it.name == RESTRICTED_USER_REALM_ROLE}.id,
// clientRoles.find { it.name == ClientRole.READ_ASSETS.value}
// ]
-// adminUserResource.updateRoles(null, keycloakTestSetup.tenantBuilding.realm, roles)
-// roles = adminUserResource.getRoles(null, keycloakTestSetup.tenantBuilding.realm)
+// adminUserResource.updateRealmRoles(null, keycloakTestSetup.tenantBuilding.realm, roles)
+// roles = adminUserResource.getRealmRoles(null, keycloakTestSetup.tenantBuilding.realm)
// defaultRole = roles.find {it.name == KEYCLOAK_DEFAULT_ROLES_PREFIX + keycloakTestSetup.tenantBuilding.realm}
//
// then: "the write role should have been updated"