Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Customize Keycloak by extending a bundled theme and overriding only what you need, then configure authentication behavior through flows, subflows, executions, and their requirements. Treat these changes as security- and upgrade-sensitive. Disabling automatic account creation during an identity-provider login is not the same as disabling an existing Keycloak user; the exact existing-user procedure and its session effects must be checked in documentation matching your server version.

What can you customize in Keycloak?

Keycloak supports customization across several user interfaces, including the login page, Admin Console, and Account Console. The appropriate theme type depends on which interface you want to change. See Keycloak’s UI customization introduction for the scope of those interfaces.

Themes can contain HTML templates, images, message bundles, stylesheets, scripts, and theme properties. Keycloak uses FreeMarker templates to render HTML. In most cases, retaining the built-in templates and overriding selected resources is easier to maintain than replacing broad sets of templates.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How should you create and maintain a custom theme?

  1. Create a directory for your theme under the server’s themes directory, with a directory for each theme type you intend to customize.
  2. Add a theme.properties file for each type. Specify the parent theme and any imported resources needed.
  3. In the Admin Console, select the custom theme under Realm Settings > Themes.
  4. During development, disable theme and template caching so edits are easier to inspect. Re-enable caching in production; Keycloak warns that caching significantly affects performance.
  5. Extend a bundled theme and override individual resources as needed. Do not edit bundled theme files directly, which complicates upgrades.
  6. When upgrading Keycloak, compare any overridden templates with the originals for the new server version and update your copies as needed.
  7. Restrict write access to theme directories and theme JARs to trusted operators. Keycloak warns that a malicious FreeMarker template can run code as the Keycloak process.

Keycloak’s theme guide covers theme composition, inheritance, caching, and security. Custom templates are a maintenance commitment: changes in Keycloak’s bundled templates can make an override stale after an upgrade.

#1 Best Overall
Tecmojo 12U Open Frame Network Rack for IT & AV Gear, AV Rack Floor Standing or Wall Mounted,with 2 PCS 1U Rack Shelves & Mounting Hardware,Network Rack for 19" Networking,Audio and Video Device
  • 【Powerful Load-bearing】12U Network Rack Open Frame is constructed from durable cold rolled steel; Rack shelf supports enhance stability, wall-mounted capacity of 130lbs, the ground-mounted up to 260lbs
  • 【Considerate Designs】Open-frame layout, including a top panel adding space, anti-slip shelf stops fixing devices and compatible racks for stack and expansion to meet requirements of home server rack
  • 【Complete Accessories】A 12U open frame server rack, two ventilated shelves, four shelf stops, four velcro straps and a set of equipment mounting screws
  • 【Versatile Application】Ideal for space-efficient multi-device setups in warehouses, retail, classrooms, offices and more; Excellent choices as AV Rack/IT Rack
  • 【Effortless Setup】 Network Rack includes hardware, a comprehensive manual, mounting hole drilling template and an online assembly video to simplify setup

How do authentication flows determine what happens?

In the Admin Console, use the Authentication area to inspect, duplicate, or create flows. A flow begins with a top-level definition; you then add executions and, where needed, subflows. In the Keycloak Server Administration Guide 26.8.0, the three factors determining flow behavior are the flow and subflow hierarchy, the executions at each level, and the requirement assigned to each execution and subflow. See the versioned Server Administration Guide.

Executions can be automatic or interactive. An interactive execution may pause for user input. The hierarchy and requirements together determine which steps run and whether the flow completes; a single execution should not be assessed in isolation.

Rank #2
Sale
StarTech 42U 4-Post Open Frame Rack, 19in, 22-40in, 1323lb/600kg
  • ADJUSTABLE DEPTH: 4-Post 42U open frame server rack with 4 vertical rails and adjustable mounting depth 22" to 40" (56,0cm to 101,7cm); Compatible with various servers / switches / data / AV and other IT equipment; EIA/ECA-310-E Compliant
  • EASY ASSEMBLY: Mobile network rack with easy-to-follow assembly instructions and online video; Compact flat-pack shipping to avoid damage and facilitate installation; Total product height of 80.3in (204 cm) with casters, 78in (198cm) without casters
  • COLD ROLLED STEEL: Durable 4 Post 19in open frame rack designed for ventilation with 42U mounting height and 1320lb (600kg) weight capacity (stationary); 3 install options included: casters, levelling feet, or base-plate to secure rack to the floor
  • HARDWARE INCLUDED: Rolling computer/data rack includes cage nuts and screws to mount equipment, easy to read Units (U) and depth adjustment markings, cable management hooks for organization, and required assembly tools
  • THE IT PRO'S CHOICE: Designed and built for IT Professionals, this 42U rack is backed for 2-years, including free lifetime 24/5 multi-lingual technical assistance

Adapt an existing flow or build a specialized one

Keycloak supports duplicating an existing flow and modifying the copy. This is often the more maintainable starting point when its structure is close to the behavior you need. For specialized behavior, developers can implement custom Authenticators and incorporate them into a flow; that approach requires development work and careful review of the new logic.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Before production use, validate the intended paths, alternative branches, and failure cases in a test environment running a version matched to production. Flow configuration is security-sensitive: a requirement or branch that behaves differently than intended can change who is allowed to proceed.

Rank #3
Sale
TECMOJO 12U Open Frame Network Rack for IT & AV Gear, 4-Post With Casters, Mobile With 2 PCS 1U Server Shelf & Mounting Hardware, for 19" Network, Audio and Video Device
  • 【Powerful load-bearing】12U Network Rack Open Frame is constructed from durable Cold Rolled Steel; Rack Shelf Back Support enhances stability; load-bearing capacity of 260lbs
  • 【Sliding&Considerate】Open-frame layout, including four wheels easy to move, a top panel adding space, anti-slip shelf stops fixing devices and compatible racks for stack and expansion to meet requirements of home server rack
  • 【Complete Accessories】A 12U open frame server rack, two ventilated shelves, four shelf stops, four casters, four velcro straps and a set of equipment mounting screws
  • 【Versatile Application】Ideal for space-efficient multi-device setups in warehouses, retail, classrooms, offices and more; Excellent choices as AV Rack/IT Rack
  • 【Effortless Setup】Server rack with wheels includes hardware, a comprehensive manual, mounting hole drilling template and an online assembly video to simplify setup

First Login Flow and Post Login Flow are different

Identity-provider settings distinguish a First Login Flow from a Post Login Flow. The First Login Flow applies when a user logs in through that provider for the first time. A Post Login Flow can run additional actions after provider login. Choose the setting that matches the point in the sign-in lifecycle where the behavior belongs.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Does preventing broker account creation disable existing users?

No. These are separate controls. The Keycloak Server Administration Guide 26.8.0 describes how to prevent automatic creation of a local account during first broker login; that does not establish how to disable an account that already exists.

Rank #4
VEVOR 12U Open Frame Server Rack, 23-40 in Adjustable Depth, Free Standing or Wall Mount Network Server Rack, 4 Post AV Rack with Casters, Holds All Your Networking IT Equipment AV Gear Router Modem
  • Adjustable Depth: 23-40'' adjustable depth is used for servers and network equipment, ensuring enough space for AV equipment, components, and cabling, while allowing you to access ports and equipment from multiple sides.
  • Strong Load Capacity: Ground-Mounted Load Capacity: 500 lbs, Wall-Mounted Load Capacity: 150 lbs. The av rack is made of carbon steel for better weldability performance and can help save space while meeting your need to place multiple devices.
  • User-friendly Design: Ergonomic design makes the open frame av rack easier to use. The additional top panel is able to place other items with more available space. Roller design moves anywhere and anytime, is convenient, and is more energy-saving.
  • Complete Accessories: We provide the accessories you need, including 2 x Pallets, 145 x M5*10 Cross Head Screws, 4 x Casters, 4 x M10*50 Expansion Screws,10 x M6*12 Cage Nuts, 1 x Grounding Wire, 1 x User Manual.
  • Wide Application: The server rack wall mount maximizes the use of available space, suitable for retail venues, classrooms, offices, and other places where space is limited.

Prevent automatic account creation during first broker login

By default, the First Broker Login flow can create a local Keycloak account when someone arrives through an external identity provider and no matching account exists. For deployments where users are pre-created, such as a read-only LDAP store, the guide describes disabling both Create User If Unique and Confirm Link Existing Account in the First Broker Login flow. This is independent of the realm’s self-registration switch.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Restrict broker login to existing realm users

The guide also describes a first-login design using Detect Existing Broker User and Automatically Set Existing User, with both requirements set to REQUIRED. Configure the identity provider to use that First Login Flow. Automatically associating a broker identity with an existing account is a trust and account-linking decision; validate the identity-matching assumptions before enabling it.

Disabling an existing account and session effects

The cited passages do not establish the exact user-level procedure for disabling an existing account, how a disabled account is presented at login, or whether existing sessions are terminated. They also do not establish precise behavior for every user-federation provider. Consult the user-management and REST API documentation for the deployed Keycloak version before relying on a procedure or making claims about session revocation. Do not use broker account-creation settings as a substitute for that guidance.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.