Keycloak is a user authentication service that runs in a pod on your Domino cluster.
Discover how to set up Keycloak, manage user groups, and configure local usernames and passwords.
Keycloak offers various authentication methods:
To access your Keycloak instance, visit https://<your-domino-domain>/auth/
.
You must sign in to the Keycloak admin console at least once to initialize the authentication service.
Retrieve the admin password
Before your first sign-in, you must retrieve the admin password.
If you haven’t already, install kubectl and sign in to Kubernetes.
-
Retrieve the administrator password from the
keycloak-http
Kubernetes secret:kubectl -n <domino-platform-namespace> get secret keycloak-http -o yaml
The following is a sample response:
apiVersion: v1 data: password: <encrypted-password> kind: Secret metadata: creationTimestamp: 2019-09-09T21:23:15Z labels: app.kubernetes.io/instance: keycloak app.kubernetes.io/managed-by: Tiller app.kubernetes.io/name: keycloak helm.sh/chart: keycloak-4.14.1-0.10.2 name: keycloak-http namespace: domino resourceVersion: "6746" selfLink: /api/v1/namespaces/domino/secrets/keycloak-http uid: 09009f96-d348-11e9-9ea1-0aa417381fd6 type: Opaque
-
Decrypt the password from the response:
echo '<encrypted-password>' | base64 --decode
-
Use this password to sign in to
https://<your-domino-domain>/auth/
with the usernamekeycloak
.
Domino automatically configures Keycloak with a realm named DominoRealm
, to create and manage new users.
When you review or change settings for Domino authentication, ensure that you have DominoRealm
selected.
You can enable or disable Domino user registration from the Keycloak admin console.
-
In the Keycloak sidebar menu, click Realm Settings.
-
Click the Login tab, and toggle User registration to On or Off.
The simplest option for authentication to Domino is to use local usernames and passwords. When you choose local authentication, Keycloak stores all user data in Postgres.
Set login and email configurations in Keycloak for easy authentication to Domino.
User management
Your first sign-in as administrator automatically configures Keycloak with realms. A realm is the Keycloak equivalent of a tenant. It’s used to manage groups of users. The default Keycloak admin account is in the Master realm. Master realm accounts can view, create, or update accounts in other realms. Domino also automatically configures a realm called DominoRealm. DominoRealm accounts are non-admins and have ordinary user privileges.
In the Keycloak sidebar, from the menu, click DominoRealm.