A realm for your customers
Keep customers in a realm of their own, apart from your staff and from master. The realm’s Login tab under Realm settings has the switches a public login needs:
- User registration, so people create their own account.
- Email as username and login with email, so nobody has to invent a username.
- Verify email, so every account has an address that works.
- Forgot password, which sends a reset link.
- Remember me, for longer sessions on a person’s own device.
The emails go through the mail server you set under Realm settings, Email: your own provider and your own sender address. Outbound traffic from your Keycloak is closed by default, so we open it to your mail host.
Profiles, terms and the account console
The user profile defines which attributes an account has, which are required, how each is validated and who may see or change it. Fields you mark for registration appear on the sign-up form, so you collect only what you need.
Required actions ask for something once: accept your terms (the Terms and Conditions action), verify an email, set a new password or set up a second factor. The required actions tool lists them.
Every user gets the account console at /realms/customers/account, where they change their details and password, set up two-factor sign-in, see their sessions and the providers linked to their account. Account deletion is available too, once you enable the Delete Account action.
Protecting the login
- A password policy with length, character classes, password history and a ban on the username or email as the password. Build one with the password policy tool.
- Brute-force detection, which slows down or locks an account after repeated failures. The brute-force tool shows what each setting does.
- reCAPTCHA on the registration form, to slow down sign-up bots.
- Session and token lifetimes that match how people use your app. The session timeouts tool explains each one.
How the login looks
Your realm uses Keycloak’s built-in login theme, keycloak.v2, which follows the visitor’s light or dark setting. You can set the realm’s display name and override any text through realm localization, in every language Keycloak ships. Custom themes with your own templates and styles are not supported in our tenant images yet. If your launch depends on a branded login page, tell us before you order.
Social sign-in and passkeys
Keycloak ships providers for Google, GitHub, Facebook, Microsoft and several others, and any OpenID Connect or SAML provider can be added as a generic one. Each needs an app registered at the provider, with the redirect URI Keycloak shows for it.
The first broker login flow decides what happens on someone’s first social sign-in: create an account, or link it to an existing one with the same email after the person proves it is theirs.
Passkeys are a supported part of the default login forms since Keycloak 26.4. Passkeys and MFA covers them, one-time codes and recovery codes.