Class AbstractKeycloakSetup

java.lang.Object
org.openremote.manager.setup.AbstractKeycloakSetup
All Implemented Interfaces:
org.openremote.model.setup.Setup
Direct Known Subclasses:
KeycloakCleanSetup, KeycloakInitSetup

public abstract class AbstractKeycloakSetup extends Object implements org.openremote.model.setup.Setup
  • Field Details

    • PUBLIC_USER_ROLES

      public static final org.openremote.model.security.ClientRole[] PUBLIC_USER_ROLES
    • REGULAR_USER_ROLES

      public static final org.openremote.model.security.ClientRole[] REGULAR_USER_ROLES
    • container

      protected final org.openremote.model.Container container
    • identityService

      protected final ManagerIdentityService identityService
    • keycloakProvider

      protected final ManagerKeycloakIdentityProvider keycloakProvider
    • setupService

      protected final SetupService setupService
  • Constructor Details

    • AbstractKeycloakSetup

      public AbstractKeycloakSetup(org.openremote.model.Container container)
  • Method Details

    • getKeycloakProvider

      public ManagerKeycloakIdentityProvider getKeycloakProvider()
    • createRealm

      public org.openremote.model.security.Realm createRealm(String realmName, String displayName, boolean rememberMe)
    • createUser

      public org.openremote.model.security.User createUser(String realm, String username, String password, String firstName, String lastName, String email, boolean enabled, org.openremote.model.security.ClientRole[] roles)
    • createUser

      public org.openremote.model.security.User createUser(String realm, String username, String password, String firstName, String lastName, String email, boolean enabled, boolean emailNotificationsDisabled, boolean pushNotificationsDisabled, org.openremote.model.security.ClientRole[] roles)
    • removeManageAccount

      public void removeManageAccount(String realm)
      Default realm roles will assign manage-account role to account client so we have to remove this role from the composite default roles This is a temporary thing and when/if we move to groups we should look at explicit default roles on realm creation