Package org.openremote.manager.setup
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 Summary
FieldsModifier and TypeFieldDescriptionprotected final org.openremote.model.Containerprotected final ManagerIdentityServiceprotected final ManagerKeycloakIdentityProviderstatic final org.openremote.model.security.ClientRole[]static final org.openremote.model.security.ClientRole[]protected final SetupService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.openremote.model.security.RealmcreateRealm(String realmName, String displayName, boolean rememberMe) org.openremote.model.security.UsercreateUser(String realm, String username, String password, String firstName, String lastName, String email, boolean enabled, boolean emailNotificationsDisabled, boolean pushNotificationsDisabled, org.openremote.model.security.ClientRole[] roles) org.openremote.model.security.UsercreateUser(String realm, String username, String password, String firstName, String lastName, String email, boolean enabled, org.openremote.model.security.ClientRole[] roles) voidremoveManageAccount(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 creationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openremote.model.setup.Setup
onInit, onStart
-
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
-
keycloakProvider
-
setupService
-
-
Constructor Details
-
AbstractKeycloakSetup
public AbstractKeycloakSetup(org.openremote.model.Container container)
-
-
Method Details
-
getKeycloakProvider
-
createRealm
-
createUser
-
createUser
-
removeManageAccount
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
-