Skip to content

Create KeyCloak Users

Warning

This is not a complete recipe - it's an optional component of the Keycloak recipe, but has been split into its own page to reduce complexity.

Unless you plan to authenticate against an outside provider (OpenLDAP, below, for example), you'll want to create some local users..

Ingredients

Summary

Existing:

Create User

Within the "Master" realm (no need for more realms yet), navigate to Manage -> Users, and then click Add User at the top right:

Navigating to the add user interface in Keycloak

Populate your new user's username (it's the only mandatory field)

Populating a username in the add user interface in Keycloak

Set User Credentials

Once your user is created, to set their password, click on the "Credentials" tab, and procede to reset it. Set the password to non-temporary, unless you like extra work!

Resetting a user's password in Keycloak

Summary

We've setup users in KeyCloak, which we can now use to authenticate to KeyCloak, when it's used as an OIDC Provider, potentially to secure vulnerable services using Traefik Forward Auth.

Summary

Created:

  • Username / password to authenticate against KeyCloak

Tip your waiter (support me) 👏

Did you receive excellent service? Want to make your waiter happy? (..and support development of current and future recipes!) See the support page for (free or paid) ways to say thank you! 👏

Flirt with waiter (subscribe) 💌

Want to know now when this recipe gets updated, or when future recipes are added? Subscribe to the RSS feed, or leave your email address below, and we'll keep you updated. (double-opt-in, no monkey business, no spam either - check the archive for proof!)

Your comments? 💬