Skip to content
CIAM

Keycloak for customer login (CIAM)

Registration, email verification, password reset, social sign-in, passkeys and an account page where people manage themselves. Keycloak has all of it built in, in one realm for your customers.

Point here to play
A simplified drawing. Social providers are optional.
The short answer

Create one realm for your customers and turn on user registration, email verification and password reset under the realm’s login settings. Add Google, GitHub, Microsoft or any OpenID Connect provider for social sign-in, define the profile fields you collect, and protect the login with a password policy and brute-force detection. Your web and mobile apps use the authorization code flow with PKCE. One honest limit: the login pages use Keycloak’s built-in theme, because custom themes are not supported in our tenant images yet.

How it works

Built from Keycloak’s own parts

Realms, clients, authentication flows and mappers, as the standard admin console has them. Nothing here needs a custom extension.

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.

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.

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.

Who does what

We run the server. You shape the realm.

RealmDeploy runs
  • Keycloak and its database on a cluster of your own, sized by active users
  • Your login on your own domain, with HTTPS
  • Outbound network rules to your mail server and the social providers you add
  • Nightly backups with point-in-time restore of every account
  • Upgrades, monitoring and on-call
You configure, in the admin console
  • The customer realm and its login settings
  • The user profile and the required actions
  • Social providers and their app registrations
  • Password policy, brute-force detection and session lengths
  • The realm’s email settings and the clients for your apps
Which plan

Usually Premium

The plans are sized by realms and by active users a month: people who sign in at least once in the month. These are sizing guides, not hard caps.

Starter$199 a month
  • Dedicated Keycloak, 1 replica
  • Up to 2 realms
  • Sized for about 5,000 active users a month
  • Best effort, no uptime SLA
Fits this jobPremium$999 a month
  • High-availability cluster, 2+ replicas
  • Up to 20 realms
  • Sized for about 100,000 active users a month
  • 99.9% monthly uptime SLA
Enterprise$2,499 a month
  • Larger high-availability cluster
  • Up to 100 realms
  • Sized for about 500,000 active users a month
  • 99.95% monthly uptime SLA

Plans are sized by active users a month: people who sign in at least once in the month, not everyone who ever registered. A public login is where people meet your product, so Premium’s two or more replicas and 99.9% SLA fit most launches, for about 100,000 active users. Starter suits an early product with about 5,000 active users and no SLA. Enterprise is sized for about 500,000 active users with a 99.95% SLA.

Every plan, feature by feature

Questions

Frequently asked questions

How are active users counted?

An active user is a person who signs in at least once in the month. People who registered but did not come back that month do not count. The numbers on the plans are sizing guides, not hard caps: we write to you before anything changes.

Can I bring my existing customers and their passwords?

Often, yes. Keycloak imports users with their password hashes when the hash algorithm is one it supports, so people keep their passwords. When hashes cannot be exported, they set a new password on their next sign-in. The user import tool shows the format.

Can I brand the login page?

Partly. You can set the display name and change any text through realm localization, and the built-in theme follows light and dark mode. Custom themes with your own templates and styles are not supported in our tenant images yet.

Who sends the verification and reset emails?

Your realm does, through the SMTP server you set in its email settings, with your sender address. We open outbound network access from your Keycloak to that mail host.

Which social providers are built in?

Keycloak ships providers for Google, GitHub, Facebook, Microsoft and others. Any provider that speaks OpenID Connect or SAML can be added as a generic one.

Can people delete their own account?

Yes, once you enable the Delete Account required action and give users the role that allows it. The option then appears in the account console.

Can I use SMS codes?

Keycloak has no built-in SMS sign-in; it needs an extension, and tenant images do not support extensions yet. Authenticator apps, passkeys and recovery codes are built in.

Run it on a cluster of your own

Order a realm in the dashboard, or write to us first about what you are building.