When a custom Keycloak account console is worth building
A custom Keycloak account console is worth building when your users need to manage their profile, credentials, sessions and linked accounts inside your own product, and the built-in account console would feel like a detour from it. The decision turns on whether you want the self-service experience to match your application's navigation, branding and data model, or whether the default console already covers what your users do. The account console is a self-service surface for the signed-in user. It is separate from the admin console, which administrators use to manage realms, clients and users. Keycloak's documentation describes two routes for changing this surface: theming the default console, and reusing the @keycloak/keycloak-account-ui components in your own React application. Confirm which of these routes your Keycloak version documents before you commit to either.
The two routes carry different upgrade costs. Theming keeps Keycloak's console and its update path intact, so you mainly maintain templates and styles. Component reuse gives you more control over layout and flow, but your React application then owns the code that calls the account APIs, the dependency on the package's component interfaces, and the testing of those calls after each Keycloak upgrade. Ask your team which of its skills, and which release cadence, it can support for that ownership. Keycloak's upgrade notes are the first place to check for changed account behavior. Scope matters as well: this page covers the account console only. Login page theming and email templates are separate work with their own designs and are covered in sibling topics.
Before you choose a route, list the account features your product must move, such as credential changes, device sessions or linked identity providers, and mark which ones Keycloak already exposes through its account APIs. Each feature you rebuild is code your team maintains, and each one that depends on a security decision, such as session revocation or passkey registration, needs its own review and testing. Confirm with your Keycloak administrators which account actions are enabled in each realm, since a feature you move into your product may behave differently from the default console if its required actions or policies differ.
Theme the default console or rebuild it in your product
The two routes differ less in how the pages look than in who carries the cost of change. Theming keeps Keycloak rendering the account pages, and your team adjusts how they look. Reusing components moves those screens into code your product team builds, styles and ships on its own schedule.
- Small branding and layout change: logos, colors, fonts and a few layout adjustments on pages users already know fit the theme route, especially when the team is small.
- Account features inside your product: when account screens must sit within your navigation, design system and release calendar, the component route fits better.
- Several applications, one identity: if many products need the same profile and security screens, reusing components avoids rebuilding those screens in each one.
- Team skills: theming requires FreeMarker templates, CSS and theme packaging, while the component route requires React, build tooling and a frontend release pipeline.
- Tolerance for unplanned work: ask how much unscheduled frontend work your team can absorb in each Keycloak release, because that tolerance usually decides the route.
Before choosing, write down who will fix a broken account page after the next upgrade. If the answer is unclear, the theme route is usually the smaller commitment.
With theming, you package an account theme that Keycloak renders. The console keeps its structure and continues to receive upstream fixes and new features, and your changes sit on top of that structure. Your team owns the theme files, the overrides and the tests that show your changes still work.
- What you own: the theme directory and its packaging, stylesheet overrides, message bundles and any template overrides deployed alongside the Keycloak server.
- What breaks on upgrade: a template copied from an older release can miss new fields or markup, so a page may render incorrectly or lose a control. Stylesheet-only changes break less often but can misalign when the underlying markup changes.
- Who tests: the team that owns the theme repeats the account flows, such as viewing the profile, changing a password, managing sessions and setting up a second factor, on a staging instance running the target release.
- Keep overrides small: the fewer templates you replace, the less each release can disturb your theme. Prefer stylesheet changes where they achieve the goal.
Before scheduling an upgrade, read the upgrading guide for the target release and compare every template you override with its upstream version.
Reusing @keycloak/keycloak-account-ui components places account screens inside a React application that your team builds, styles and deploys. Your product owns the design, navigation and release cycle. Your team also takes on the calls to Keycloak's account interfaces and the version pairing between the package and the server.
- What you own: the React application, its design system integration, routing, authentication to the account interfaces, error handling and the package version you pin.
- What breaks on upgrade: component props, exported names and the data the components request can change when Keycloak changes. Your own styling can also drift from updated components.
- Who tests: your frontend and QA owners test each pinned package version against the target Keycloak server, covering sign-in, session handling and every feature you moved into your product.
- Security review: account screens trigger credential and session actions, so confirm with your security team how tokens are stored, how the application is protected and how sessions end.
- Release coupling: your deployment calendar now gates account changes, so plan around both Keycloak releases and your own release cadence.
Before committing, confirm which Keycloak versions the package supports and read its upgrade notes, because this route depends on that compatibility.
How the account console, your app and Keycloak fit together
The request starts in the user's browser, which loads either the themed default account console or your custom React app. Both call the Keycloak Account REST API with an access token that the browser obtained through OIDC against the realm. The reverse proxy sits in front of Keycloak and the admin console and Administration REST API stay on a separate hostname, which forms the trust boundary to check. Confirm that your custom app's client registration and the token audience are set before testing.
Request path from browser through the proxy to the realm, with the admin hostname kept separate.
Which account console option fits which team
This table compares four ways to change the Keycloak account console, from theming the default console to building account features on the Account REST API. Read each column against your team's skills and how much of the console you intend to own. The main takeaway is that the more of the UX you control, the more code you maintain across Keycloak upgrades.
| Option | Effort to start | Upgrade exposure | Who maintains it |
|---|---|---|---|
| Theme the default console | Low: override styles and text in a theme JAR | Low to moderate: confirm which template and style hooks changed in the target release | Your identity team, with light review at each upgrade |
| Theme that extends the default console | Moderate: extend the base theme and override only the pages you need | Moderate: each overridden template must be rechecked against the new console | Your identity or frontend team, with a standing upgrade check |
| Reuse keycloak-account-ui components in your React app | Moderate to high: build a React shell, auth flow and component wiring | Moderate to high: confirm the package version against your Keycloak release | Your frontend team, with ownership of the package upgrade |
| Build account features on the Account REST API | High: design screens, error handling and token flows yourself | Lower for the UI itself, but the API contract and scopes must be re-verified per release | Your product engineering team, owning the full user experience |
| Control over look, flow and copy | Limited to theme settings | Full control within the theme, but bounded by the console's structure | Shared with Keycloak's defaults |
| Ability to add product-specific account features | Limited | Moderate | High, with the most control |
| Ask the vendor or package docs to confirm | Current theme hooks and console template names | Package version compatibility with your Keycloak release | Whether the Account REST API scopes you need are stable |
How to build the custom account console step by step
This sequence takes a team from confirming the Keycloak and account console versions to a custom self-service app that handles credentials, sessions, linked accounts and personal information against a tested, correctly scoped Keycloak client.
Confirm versions and the feature list
Record the Keycloak server version in use and the account console version your build targets, then check the upgrade notes for that release before writing code. Next, list every account feature the custom app must provide, such as password change, passkey and OTP management, sessions, linked identity providers and profile editing, and mark which ones you will rebuild and which stay on the default console. Done means a signed-off feature list tied to a specific Keycloak version, so later upgrades know what to retest. Confirm with your own environment that the account console version matches the server, because the console is shipped with Keycloak and its components can change between releases.
Register the client with exact redirect URIs
Create a dedicated OpenID Connect client for the custom app in the realm that holds your users. Use a public client with PKCE for a browser-based single-page app, and set valid redirect URIs and web origins to the exact scheme, host and path of the app, with no wildcards in production. Keep the admin console and Administration REST API on separate hostnames, as the production guide recommends, so the custom app never needs admin access. Done means a test sign-in returns to the app with an authorization code and no redirect or CORS errors in the browser console.
Configure token audience and scopes
Decide which scopes the app requests and which audience its access tokens carry. The Account REST API expects tokens issued for its own audience, so add an audience mapper or client scope that grants the custom client access to the account endpoints it calls, and keep that scope off clients that do not need it. Check that tokens contain only the claims the feature list requires. Done means decoding a test access token shows the expected audience, scopes and claims, and a call to a feature the client should not reach returns an authorization error.
Wire components or Account REST API calls
Choose per feature whether to reuse components from the @keycloak/keycloak-account-ui package inside your React app or to call the Account REST API directly. Reusing components keeps behavior aligned with the shipped console but ties your build to that package's version and its props. Direct API calls give full control but mean your team owns error handling, CSRF and token refresh for each endpoint. Implement one feature end to end first, such as password change, and log the requests it makes. Done means that feature completes against a test realm and the request log matches the Account REST API documentation for your version.
Theme and style the app
Apply your branding to the custom app's own styles and layout, keeping the Keycloak sign-in step on the realm login theme so the login pages stay consistent. Limit custom styling to your app and avoid copying the default console's internal markup, since that code changes between releases. Review the result for contrast, keyboard navigation and screen reader labels on the forms you rebuilt. Done means a reviewer confirms the branded app matches the approved design and the feature forms pass an accessibility check your team defines.
Test credentials and multi-factor flows
Run end-to-end tests for password change, passkey and OTP enrollment and removal, and recovery codes, using test users in a non-production realm. Confirm that the app asks for re-authentication before sensitive changes where the realm policy requires it, and that a removed factor cannot still complete sign-in. Record each test result against the feature list from the first step. Done means every credential test passes in the test realm and the results are stored with the release notes for the build.
Test sessions, linked accounts and personal data
Verify that the session list shows the user's active sessions and that signing out one session or all sessions ends access for the app's tokens. Test linking and unlinking an upstream identity provider, and confirm that unlinking a provider a user still needs is blocked or warned about. Check that profile edits respect the attributes and validation rules the realm defines. Done means these scenarios pass with two browsers signed in as the same test user, and the results are recorded alongside the credential tests.
Retest on each Keycloak upgrade
Before the custom console goes to production, record the test suite, the Keycloak version and the account console package version as a baseline. Rerun the full suite on each Keycloak minor release or package change in a staging environment before rollout, and review the upgrade notes for account-related changes. Done means a written upgrade checklist exists, a staging run completes after the most recent upgrade, and any failed scenario has an owner and a fix before production changes.
Security checks for a custom account console
A custom account console moves self-service actions into an app you own, so the security of password changes, linked accounts and sessions now depends on your code as well as on Keycloak. The cards below cover the checks a reviewer should run before the console handles real user accounts.
Token handling in the browser
A React console that calls the Account REST API needs an access token in the browser. Confirm which client the console uses, that it is a public client with PKCE, and that tokens are kept out of local storage where possible. Check token lifetimes and that the console requests only the scopes its screens need. Review how the app behaves when a token expires mid-session.
Keycloak docsCSRF and web origin settings
Confirm the client's valid redirect URIs and web origins list only the exact console hostname, with no wildcards. Test that cross-site requests cannot trigger account changes from another origin. Check that the console's own API calls send only the headers and methods the Account REST API expects.
Account REST API operations the app can call
Inventory every Account REST API operation the console calls and remove what it does not need. Confirm that the client's roles and the user's own permissions limit each call to the signed-in user's account. Test that a user cannot read or change another user's credentials, sessions or linked accounts by changing an identifier in a request.
Consent for linked accounts
When users link external identity providers from the console, the flow should show which provider and account is being connected and require the user to approve the link. Test that linking cannot be started from a crafted link, and that unlinking also requires a clear user action. Review how linked accounts are shown after a link is removed.
Re-authentication for sensitive changes
Password changes, credential registration, signing out other sessions and deleting an account should require the user to prove recent authentication. Check the console's behavior when the session is older than the allowed maximum age, and confirm that these actions are not reachable with a session that was only lightly authenticated.
Logging account changes
Account changes made through a custom console often bypass the screens Keycloak already audits. Confirm that Keycloak's event logging captures credential, profile and linked-account changes, and that the console's own actions appear in those events. Decide where events are stored and how long they are kept, and test that the logs record the user, the time and the client.
Admin console on a separate hostname
Keep the admin console and Administration REST API on a hostname or context path separate from the public frontend URLs, as the production guide recommends. The account console is a public surface, so it should never share a route with admin endpoints. Verify this at the reverse proxy with path restrictions and test that admin paths are unreachable from the public host.
Production guideWhat Keycloak upgrades do to account console customizations
How often do Keycloak releases change things that could affect a custom account console?
Since Keycloak 26.0, the project plans four minor releases a year and a major release every two to three years. Each minor release can touch the account console, its REST endpoints or the login flows around it, so custom account features need a retest cycle that follows that cadence rather than waiting for a major version. The project says breaking changes in a minor release will be opt-in, which lowers the risk of a surprise change during a routine upgrade. Confirm the exact changes in each release's notes before you schedule the upgrade, because opt-in does not mean no action is needed. Review the Keycloak upgrading guide for every version you pass through.
Do opt-in breaking changes mean my account console customizations are safe to upgrade?
Not automatically. Opt-in breaking changes reduce the chance that a minor upgrade changes behavior without your involvement, but you still have to enable new behavior deliberately and test it. A theme override of an account page or a custom React component built on the account UI package depends on markup, component props and API calls that can change between releases. Treat each upgrade as a checklist: read the release notes, identify which account pages and endpoints you touched, and run your account tests against the new version in a staging realm before production.
What did the Keycloak 26.8 upgrade notes change that affects sign-in and logout?
The 26.8 upgrade notes include three changes that matter for account features. SMTP connections now require StartTLS without plaintext fallback, so account emails such as verification or email change confirmations fail if your mail relay cannot negotiate it. Backchannel logout tokens from external providers must pass signature validation, which affects any logout flow that depends on those tokens. Login failures are persisted to the database by default, which changes what your data growth and reporting look like. Read the 26.8 section of the upgrading guide and test each path end to end, including a custom account page that starts or ends a session.
How often should we retest custom account features after a Keycloak upgrade?
Retest after every Keycloak minor upgrade that reaches production, and also when you change the custom React app, its dependencies or its hosting. A practical cadence for most teams is a full regression pass on the account features you own, plus a smaller smoke test on each new Keycloak patch release. Ask whoever runs your testing to cover sign-in, password change, MFA enrollment, session listing, session revocation, logout and email-driven actions. The number of test cycles per year follows directly from how often your organization adopts new minor releases, so set that policy with your security team before the first upgrade.
Why does a custom React account app need its own release pipeline tied to Keycloak versions?
A custom React app depends on two moving parts: the Keycloak server version and the @keycloak/keycloak-account-ui package version that you build against. If those drift apart, the app can compile and still call an account endpoint whose behavior changed. A separate pipeline lets you pin the package version to the Keycloak release you run, build the app in CI, run the account tests against a matching test Keycloak, and deploy the app on its own schedule. Record the pairing in version control so a rollback to the previous Keycloak version also restores the matching front end.
Who owns the work when Keycloak changes break a custom account feature?
Ownership sits with the team that built the feature, but the cost depends on how it was built. A theme override usually needs template changes, while a custom React app needs code changes, a rebuild and a deployment. Before you engage a partner or assign internal staff, agree in writing who triages failures, who approves the package version and who signs off the retest. Ask any implementation partner to state which upgrade tasks are included in the fixed scope and which are billed separately for later Keycloak releases.
What should we ask for in a quote for ongoing account console upkeep?
Ask for the scope of each recurring task: how many Keycloak minor releases are covered per year, whether patch releases are included, how regression tests are run and who maintains the test environment. Ask whether the quote covers changes to the React app's package version, theme template updates and fixes for changed endpoints, and whether emergency patches are priced differently. Costs rise with the number of custom account features, the number of supported languages and the number of realms that share the console. Ask for these terms in writing so the upkeep cost is predictable before any upgrade starts.
What moving account features into your product involves
Moving account features into your own product means every self-service action the default console performs must exist as a call your application makes to Keycloak's Account REST API, and that work is larger than the first screen. Map each feature to an endpoint before you design it: personal information, password and passkey management, OTP and recovery codes, linked identity providers, and sessions and devices. For each row, record the request your app will send, the credential or token it needs, and the state the user sees afterward. Features that the default console handles through redirects or re-authentication, such as changing a password or adding a second factor, need the same step-up behavior in your UI, or users will reach a dead end.
Validation is the part teams most often underestimate. Keycloak enforces the declarative user profile on the server, so required fields, value formats and per-context rules apply whether a change comes from the default console or your app. Your form should show the server's error responses rather than duplicate rules in JavaScript that can drift from the realm configuration. This dependency also means the user profile, unmanaged attribute policy and who can view or edit each attribute must be settled on the server before you build personal information screens. Changing those rules later can break forms that were built against the earlier configuration.
Accessibility and localization stay your responsibility once the screens are yours. The default console's keyboard behavior, focus handling, labels and error announcements do not carry over automatically, so test your rebuilt screens with assistive technology and confirm which locales your realms enable. Then decide which features stay on the default console. Security-sensitive or rarely used flows, such as device sign-out or certain credential enrollment steps, often remain there, which keeps upgrade exposure smaller. Confirm the exact Account REST API endpoints and their version requirements against the server administration guide for the Keycloak release you run, since they change between releases.
Limits to confirm before you commit to a custom console
A custom account console ties your product to specific Keycloak and package versions, API surfaces and browser behavior. The checks below are the ones to settle in your own environment before you estimate effort or commit to a design.
Account console and package versions
The account console and @keycloak/keycloak-account-ui must match the Keycloak release you run. Keycloak ships four minor releases a year, and the current release is 26.8.1, so a component that works on one minor line may change on the next. Confirm the exact package version that pairs with your server, then pin it. Ask who will own the version bump each time you upgrade Keycloak.
Upgrading guideAPI coverage for each account feature
Moving a feature into your product only works if the account REST endpoints it needs exist, return the data you display and accept the writes you require. Check each feature one at a time, including credentials, linked accounts, sessions and personal information, against the version you run. Where an endpoint is missing or limited, decide whether you will build a workaround or keep that feature in the default console.
Server administration guideAuthentication step behavior in your flows
Your console must handle the same step-up prompts, passkey registration and MFA enrollment that the default console triggers. If your flows require a re-authentication before a sensitive change, confirm how the custom screen receives that requirement and resumes afterward. Test each path, because a console that skips a required step can weaken the security of the account.
Browser support matrix
Decide which browsers and versions your users run, then test the custom console against that list. The default console and the React components may not support the same range, and older browsers can break scripts, layouts or token handling. Ask whether your customers use managed devices with fixed browser versions, since that changes how far back you must test.
Accessibility conformance you must meet
Account pages often carry forms, dialogs and security prompts that must work with keyboards and screen readers. Name the conformance level your contracts or regulators require, then test the custom screens against it instead of assuming the default components meet it. Accessibility fixes in your own React code remain your maintenance cost after every upgrade.
Edition and Red Hat build support
If you run the Red Hat build of Keycloak rather than the upstream release, confirm which console and component versions that distribution supports and whether it changes the supported surface. Red Hat's product page showed version 26.6 as its latest, which may differ from the upstream release you track. Ask your vendor which customizations keep you inside support.
Red Hat build pageQuestions teams ask about building an account console
What drives the cost of building a custom Keycloak account console?
The main cost drivers are the number of account features you move out of the default console, the amount of design system work needed to match your product, the testing scope across browsers, devices and flows, and the retest cycles each Keycloak release triggers. Each feature you move adds build, integration and test work, because you own the code that calls Keycloak's account APIs. One-time costs cover the initial build and testing. Recurring costs come from retesting and adjusting the console after each Keycloak upgrade. Ask any provider for a quote that lists features, design scope, test scope and the number of upgrade retests it includes, so you can compare fixed scope against your own estimate.
How long does a custom Keycloak account console take to build?
Duration depends mostly on how many account features you move into your product and how much of your design system you reuse. A theme-only change to the default console usually takes less time than a React app that reuses the keycloak-account-ui components and replaces several pages. Your team's familiarity with React, your identity model and your release process also matter. Ask for a written timeline that splits design, build, integration testing and handover, and confirm which parts depend on your stakeholders or test environments. The timeline should be agreed in writing before work starts.
What does the client need to provide for this work?
You need a named decision-maker for scope and sign-off, a product or UX owner for the account features, and engineers who can review integration code. Technically, you need a staging realm that mirrors production client settings, test user accounts covering each role, group and required action, and a non-production Keycloak version that matches the one you plan to run. Access to your design system assets and your existing frontend build pipeline is also needed. Confirm these inputs early, because missing test accounts or a staging realm often delays testing more than the build itself.
Can our internal team build a custom account console without a partner?
Yes, a team with solid React and OpenID Connect experience can build it, provided it has time and clear ownership. The harder part is not the first release but keeping the console working across Keycloak minor releases, which the project ships several times a year and may bring changes to the account APIs or components. Decide whether your team can own that retest cycle over the life of the product. If not, a partner can carry the initial build, the documentation and the upgrade testing, or your team can build and run it with a partner on call. Compare the staffing you need against your current roadmap before choosing.
What does an ongoing retainer cover for a custom account console?
DeployOpen offers ongoing support, upgrades and continuous testing as retainers. For an account console, a retainer would typically cover reviewing each Keycloak release against your customizations, retesting account flows after upgrades, fixing regressions and keeping the documentation current. Ask what is included in the retainer, how many upgrade cycles and test passes it covers, how urgent fixes are handled and how changes to the console are requested. The written scope should define these items, so you know which work is included and which would be quoted separately.
Does moving account features into our product increase upgrade risk?
Yes, it generally does, because each feature you move becomes code you maintain against Keycloak's account interfaces. Keycloak plans four minor releases a year and says breaking changes in a minor release will be opt-in, which reduces surprise but does not remove the need to test your console. Review the upgrade notes for each release, run your account flows in staging and check the components you reuse. Keeping the number of moved features small, and limiting custom code to what your product truly needs, keeps retest effort predictable.
Which parts of the account console should we test before going live?
Test the flows users depend on most: signing in and reaching the account pages, updating profile data, changing passwords, managing credentials such as OTP and passkeys, viewing sessions and linked accounts, and signing out. Include negative cases such as expired sessions, locked accounts and missing permissions. Test with the accessibility tools and browsers your users rely on, and verify that each request your console makes is authorized through the expected token and client configuration. Record the results so the same suite can run again after each Keycloak upgrade.
How the scope of this work is agreed
DeployOpen agrees the scope, deliverables and timelines in writing before any account console work starts. For a custom account console, the written scope is the document that decides what gets built, so it should name each account feature that moves into your product, each feature that stays on the default console, the environments covered and the test plan. A feature list alone is not enough. Ask that every item say whether it is a read-only view, a self-service action such as changing a password, enabling a passkey or managing sessions, or a flow that calls the Account REST API, because each type carries a different build and test effort. Ask also who owns the React application, where it is hosted and which Keycloak version it is tested against.
The environments section should list every realm, client and hostname the console will run against, including development, staging and production, and whether the console is served from the same origin as Keycloak or a separate one. The test plan should state which account flows are covered by automated tests, which are checked by hand, and how the team will confirm that personal data is only returned for the signed-in user. Ask for the acceptance criteria for each feature in writing. Note also that Keycloak minor releases are published several times a year, so the scope should state which Keycloak version is the baseline and who retests the console when that baseline changes.
Ongoing upgrades and continuous testing are available as retainers. A retainer covers work after go-live, such as retesting the console against new Keycloak releases, reviewing the components reused from the account UI package and rerunning the test plan. Because retainers are separate from the fixed-scope build, ask for the retainer terms, the response expectations and what is excluded before you sign the build scope. Confirm with DeployOpen how any retainer interacts with the build deliverables, so that the post-launch upkeep of your custom features is priced and owned clearly from the start.
How DeployOpen builds and supports Keycloak account consoles
DeployOpen plans, builds, documents and supports custom Keycloak account consoles inside your own infrastructure, whether you theme the default console or reuse account UI components in your own React application. Each engagement starts from a written scope, so the feature boundaries, upgrade approach and handover material are agreed before development begins.
How we scope
- Agree in writing which account pages change: profile, credentials, sessions, linked accounts and applications.
- Decide whether the work is theming the default console or moving account features into your own React app.
- Record the Keycloak version and upgrade approach so the console scope matches your release plan.
How we build
- Build theme changes or React components against the account API your chosen Keycloak version exposes.
- Test each account feature for sign-in, credential changes, session handling and error paths before release.
- Keep customizations limited to the templates and components you need so future upgrades stay manageable.
How we hand over
- Deliver source, build steps and deployment instructions for the theme or React application in your repositories.
- Document each override, the Keycloak version it targets and the test cases that cover it.
- Walk your platform and identity teams through the upgrade checklist for the console customizations.
How we support
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing for the account console are available as a retainer.
- Retest account console changes when you move to a new Keycloak release to confirm they still behave as documented.

