r/KeyCloak • • 3d ago

What are the real world usages of Verifiable Credentials on the Verifier side for Identity Provider

6 Upvotes

I understand the use case to issue the verifiable credentials for educational and official documents, the identity provider is probably a centralized place which knows the identity and can manage the issuance.

On the verification side though, the use cases that I come across happen to be of the nature where the user may not have an existing identity with the verifier. Question becomes, is it a natural fit to add verifier functionality in the identity provider or it could be more suitable as a standalone library.


r/KeyCloak • • 8d ago

When to use 2 realms in keycloak

3 Upvotes

I am using Keycloak for a ticketing system that requires two completely isolated authentication flows. Currently, terminal staff log in using standard credentials to access an internal management app. Now, I need to add a second login flow for customers using Google and Facebook as identity providers so they can buy tickets on a separate app. Since staff must not access the customer app and customers must not access the staff app, what is the recommended best practice in Keycloak: creating a separate realm for customers, or using the existing realm and enforcing isolation through roles and client configurations?


r/KeyCloak • • 10d ago

Keycloak as an OpenID AuthZEN PDP, what works today and what I found while testing it

12 Upvotes

Since 26.7.0, Keycloak can act as a PDP for the OpenID AuthZEN Authorization API (experimental, --features=authzen). I spent the last weeks building interop tests against it and wanted to share what I learned.

What works (as of 26.8.2)

  • The Access Evaluation and Access Evaluations APIs, including deny_on_first_deny and permit_on_first_permit. The Search APIs are not available yet.
  • Metadata per realm, so discovery works with the realm URL. The endpoints live below /realms/{realm}/authzen.
  • Requests map onto Authorization Services of the client the PEP authenticates with. The resource type and id are the type and name of a Keycloak resource, and the action is a scope.

Where it differs from the spec

  • action.properties and unknown fields are rejected with 400, while the spec says receivers must ignore unknown fields (#54542).
  • A 401 carries no WWW-Authenticate header (#54516, fix proposed in #54517).
  • resource.properties and context end up in the same attribute map, so a policy cannot tell them apart (#54848).

None of these block real use, and the feature is experimental, but they are worth knowing before you design policies.

If you want to try it, the examples repository has a Docker Compose setup with a ready realm (users, roles, resources and policies for a small document portal) and a script that checks the decisions.

I also wrote a longer introduction to AuthZEN, which covers the spec, Keycloak's support and authzen-enforcer, the open source Java SDK I built to act as the PEP.

Has anyone else tried the AuthZEN endpoints? I'd be curious to hear how it went.


r/KeyCloak • • 14d ago

The 2 Critical and 15 (yes 15!) High CVEs fixed in 26.8.2 explained in short

67 Upvotes

I'm still doing it for work, so I figured I'll keep sharing them here! You might wanna grab a cup of coffee for this one because it's a long one.

CVE-2026-111497 (9.2): The HTTP2Shell (also called Node2Shell) CVE in the Brotli decoder. Reachable in Keycloak if the experimental feature `http-client:v2` is enabled and Keycloak receives a malicious compressed response from a server it calls, such as an IdP. Exposure is therefore limited, but this could theoretically lead to a denial of service or arbitrary code execution. Workaround: disable `http-client:v2`.

CVE-2026-117691 (9.1): An issue in the SAML HTTP-Redirect binding implementation allowed an unauthenticated attacker to bypass the signature check of SAMLResponse, causing the server to process unsigned SAML messages and leading to full account takeover of federated users.

CVE-2026-97175 (8.8): An issue in the idp-auto-link authenticator (the "Automatically set existing user" option in the admin console), which handles user identity federation, let an attacker take over a victim's account. The attacker could use an email address that the provider had not verified to link their login to the victim's existing account.

CVE-2026-112208 (8.1): In realms using Organizations, an attacker belonging to several organizations could initiate a login and then switch to a registration or password reset path. A flag indicating successful login was not properly cleared, allowing the attacker to enter a victim's username and bypass authentication to gain full access to the victim's account and connected applications.

CVE-2026-114232 (8.1): An authenticated attacker who owns a User-Managed Access (UMA) resource could create a policy specifying a `resourceType` that would apply to all resources of that type, including ones belonging to other users, leading to unauthorized access to, or modification of, sensitive data.

CVE-2026-92857 (8.1): An authenticated attacker allowed to register clients through Dynamic Client Registration (with an Initial Access Token, for example) could create a malicious client application that forges identity information. They could configure their client to put a field they control, for example their first name, instead of their user ID in the access token. By changing their first name to another user's ID, they would be able to impersonate that user in other applications.

CVE-2026-96453 (8.0): When kcadm was used with a custom truststore, any self-signed certificate was accepted as long as the hostname matched, even if the certificate was not in your truststore. An attacker on the network path could pose as the Keycloak server and capture admin credentials sent by kcadm. The Keycloak server itself is not affected; update kcadm instead.

CVE-2026-103112 (7.5): An authenticated attacker could gain full access to a victim's account by using the forgotten password flow on the victim's account and logging in with their own account. This could trigger a race condition which could bind the attacker's session to the victim's account, allowing the attacker to change the victim's password.

CVE-2026-110932 (7.5): An unauthenticated attacker could send many requests with unique fabricated theme names, which would be stored on disk in the theme gzip cache. This could lead to disk space exhaustion that survives restarts, causing a denial of service.

CVE-2026-107123 (7.5): An unauthenticated attacker could send specially crafted SAML requests to the server containing excessively long dateTime or duration values that were not properly validated before processing. This could lead to high CPU utilization and a denial of service for all users.

CVE-2026-107602 (7.5): An unauthenticated attacker could send specially crafted SAML requests to cause threads processing a request to enter an infinite loop, leading to high CPU usage and a denial of service requiring a server restart.

CVE-2026-110931 (7.5): An unauthenticated attacker could send a specially crafted SAML request containing a specific element (`AuthorityBinding`) in an authentication statement. The parser could then enter an infinite loop consuming all available memory, causing the Keycloak service to crash and a denial of service.

CVE-2026-82965 (7.5): An unauthenticated attacker could send specially crafted large SAML XML messages to cause the server to consume excessive memory, leading to the application crashing and a denial of service.

CVE-2026-93998 (7.4): The Keycloak SAML adapter library (not the Keycloak server) verified the signature of SAML assertions, but failed to verify the issuer of the signed assertion. If multiple identity providers shared the same trusted signing key, an attacker controlling one of them could create validly signed assertions to log into the application as any user, including its administrators.

CVE-2026-92855 (7.4): In realms with a SAML identity provider that issues holder-of-key assertions (assertions bound to a key the user must prove they hold), Keycloak didn't check that proof. An attacker who intercepted a victim's signed assertion could replay it and impersonate the victim without needing their private key.

CVE-2026-97847 (7.1): An attacker with the `manage-clients` role could enable the service account of a client they manage and add a hardcoded-claim mapper that writes a realm administrator's identity into its tokens. Service account tokens have no session, so Keycloak resolved their owner from these claims and treated the attacker's token as the administrator's, giving them full control of the realm.

CVE-2026-96457 (High, no score yet): In realms using Fine-Grained Admin Permissions v2 and delegating group management to admins other than realm admins, an attacker with a delegated admin account allowed to manage at least one group could move this group to get around DENY rules set on subgroups, and therefore manage sensitive groups to get admin access to the realm.

I've also put the list on a page on my company website to act as an archive of the releases and for easier sharing if needed https://www.cloud-iam.com/keycloak-cve#26-8-2
if you have any ideas to make this more useful / readable, feel free to send them my way!


r/KeyCloak • • 24d ago

Keycloak Authorization Services or authz in the app: where did you draw the line?

20 Upvotes

We use Keycloak for login and realm/client roles, and the roles end up in the access token. That covers "is this person an admin". It stops working once the question becomes "can this user edit this specific project", because project membership changes all the time and lives in our own database.

I looked at Authorization Services (resources, scopes, policies, permissions). Registering every project as a resource in Keycloak feels like keeping two copies of the same data in sync, and I'm not sure how that holds up with thousands of projects per tenant.

The other option is to keep only coarse roles in Keycloak and do the per-object check in the backend against our own tables. My worry there is drift: the role in the token is whatever it was when the token was issued, so someone removed from the admin group keeps acting as admin until the token expires. We've shortened access token lifetimes, but that only shrinks the window.

For people running Keycloak in production:

- Do you use Authorization Services for per-object permissions, or only for coarse stuff?

- If you keep it in the app, how do you handle role changes before the token expires? Re-check on sensitive actions, token introspection, something else?

- Anyone moved away from one approach to the other and regretted it?


r/KeyCloak • • Oct 20 '26

Putting AI apps behind Keycloak

10 Upvotes

I built Pando (https://github.com/trypando/pando) which is an open source tool for companies to reduce their AI sprawl. I made it because of some challenges at companies I’ve worked with.

Then I realized I have the same problem with a lot of my side projects and little fun apps, so I run it at home. Itβ€˜s been a great way to share apps with family/friends I have in keycloak, so I wanted to share it here!

Its definitely solving a problem that doesn’t really exist for the average homelab, but its been fun πŸ™‚


r/KeyCloak • • Oct 09 '26

OTP Method selection?

5 Upvotes

I want to enable the ability for users to choose whether they use an App (such as google authentication) or receive a code in their email for their 2FA. Currently, I have the native OTP in keycloak and an email OTP from an open source provider set up. The issue I come across is that there is no option to choose your method. Ideally, there would be a menu to let the user choose between the two but if thats not possible, I just want the ability to change between the two. This will be expanded to include receiving an SMS code as well. Is there anyway to do this cleanly?


r/KeyCloak • • Oct 08 '26

Your seeded user count and your load model are deciding your Keycloak benchmark result

1 Upvotes

Disclosure: I work at Keymate. There is a link to our write-up at the end, but the two things below stand on their own.

The one that cost us the most time is the seeded user count. Keycloak's user cache holds a fixed number of entries, 10,000 by default. Draw your test users from a pool that fits inside it and, once the cache is warm, most lookups are a read from a map in memory. Draw from a pool far larger than it and only a small fraction stays resident, so the same lookup often becomes a database query instead. Same server, same request rate, same script.

Keycloak's own sizing guidance is honest about this in a way most published results are not. It states that its tests ran with local caches at the default of 10,000 entries against a realm of one million users, which works out to roughly one percent cache coverage. That condition is doing a lot of work and it is sitting right there in the docs.

The second is the load model. With a fixed pool of virtual users a client only sends again once the last response arrives, so the offered load falls as the server slows. Work outstanding stays bounded by your VU count. Requests can still queue inside that bound, but the test cannot hold an arrival rate the server is failing to keep up with. We read a throughput column that moved far less than latency did and took it as the server coping, when it was our own harness slowing down alongside it.

The rest of it, including what we now record next to any number:

https://keymate.io/blog/load-testing-authentication

Curious whether people here seed deliberately against cache size or pick a round number and move on. We picked a round number.


r/KeyCloak • • Oct 08 '26

I built a Keycloak-compatible IAM in Rust β€” feedback from people who actually run Keycloak welcome

0 Upvotes

If you've run Keycloak in production, you know the tax: a JVM that wants gigabytes before it serves a single login, container startup in tens of seconds, and clustering that means Infinispan whether you like it or not. I wanted to keep Keycloak's model β€” realms, clients, roles, client scopes, protocol mappers, auth flows, Admin REST API β€” and drop that tax.

So over the past three months I built issuerd: an open-source (Apache-2.0) identity & access management server in Rust, shipped as one self-contained binary (admin console, account console and login pages embedded).

To be clear up front: it's not a fork or a rewrite of Keycloak. It's an independent implementation that treats a live Keycloak 24 container as a test oracle β€” a dual-target suite runs the same protocol assertions (JSON shapes, Admin API responses, error behavior) against both, and every deliberate difference is documented.

What "compatible" means today:

  • OIDC/OAuth2 core verified by the official OpenID Foundation conformance suite: 3,907 conditions, zero failures, zero warnings (evidence bundle attached to every release)
  • SSO, MFA (TOTP) and passkeys, themable login pages, per-realm i18n
  • LDAP/Kerberos federation (Samba AD, OpenLDAP, MS AD) β€” a 100k-user AD sync finishes in ~30 s
  • Clustering without Infinispan: stateless token validation, signing keys shared via PostgreSQL, coordination state in Redis, no sticky sessions
  • vs Keycloak 26.7 in our benchmarks (methodology in the repo, reproducible): up to 7.8Γ— throughput, ~6Γ— less memory, 8.7Γ— smaller image

What it deliberately does NOT do yet: SAML, UMA, FGAP, Organizations. If you need those, Keycloak is the right answer today β€” I'd rather say that here than in a GitHub issue six weeks from now.

Repo: https://github.com/issuerd/issuerd β€” quickstart is git clone + docker compose up (pulls the published image, no build tools). Docs: issuerd.org.

I'm the author, and I'm posting here because this sub knows Keycloak's sharp edges better than anyone. What would need to be true for you to even evaluate something like this? Roast away.


r/KeyCloak • • Oct 07 '26

Should I make a hole into my network?

2 Upvotes

I need my keycloak server to work with proton mail.. As I understand it I need to use my cady reverse proxy that sits in my dmz and open a path to internal keycloak server but only https and expose certain keycloak endpoints for it to work? Wanted to make sure this is the way?

Edit: It is for SSO integration


r/KeyCloak • • Oct 05 '26

What proves a Keycloak migration is complete before the old cluster is retired?

2 Upvotes

A new Keycloak cluster can pass an interactive login test while less visible dependencies still point at the old issuer or endpoints. Realms, clients, scopes, roles, identity providers, authentication flows, required actions, service accounts, keys, themes, LDAP federation, sessions, and event listeners can also move unevenly. A low-frequency application may not reveal its old discovery URL or pinned certificate for weeks.

A useful cutover gate could compare effective realm configuration, exercise every grant and identity-provider path, verify token claims and signing-key rollover, test logout and refresh flows, and inspect traffic on both clusters during an observation window. Backups and database recovery should be tested separately from realm export. The old cluster could remain read-only or isolated but recoverable until connection logs and token validation show no late clients.

What evidence do Keycloak operators require before shutdown? Which state is commonly missed by exports, and how do you find applications that cache discovery documents, JWKS, sessions, or credentials longer than expected?


r/KeyCloak • • Oct 01 '26

The CRITICAL and the 3 HIGH CVEs fixed in Keycloak 26.7.5 explained in short

49 Upvotes

Hey, I've done this for the last minor release and it seems to have been useful for some people, so I'm sharing again the short recap on the Keycloak 26.7.5 CVEs. Let me know if you think of ways to make them more readable/understandable/useful!

Keycloak 26.7.5 fixes 14 CVEs, including 3 HIGH and 1 CRITICAL.

Those 4 higher-rated ones come from Keycloak dependencies, so the score does not reflect Keycloak's actual exposure. Two of them would need custom code to become vulnerable, and the other two only impact deployments running in FIPS mode.

CVE-2026-84939 - 9.1 (Apache FreeMarker)

By default, Keycloak does not pass a user-controlled locale or template name to FreeMarker template loading, but a custom extension could. In that case, an attacker could access other files reachable by FreeMarker's template loader.

CVE-2026-8798 - 8.7 (Bouncy Castle FIPS, `bc-fips`)

If you run Keycloak in FIPS mode, on Intel hosts where the CPU's random-number instructions keep failing, the crypto library retries forever and can hang a thread indefinitely.

CVE-2026-13505 - 8.7 (Bouncy Castle FIPS, `bc-fips`)

If you run Keycloak in FIPS mode, an out-of-memory issue can be caused under heavy load when Java finalizers can't keep up with objects being created.

CVE-2025-66021 - 8.6 (OWASP Java HTML Sanitizer)

The OWASP Java HTML sanitizer is vulnerable to XSS if HtmlPolicyBuilder allows `noscript` and `style` tags with `allowTextIn` inside the style tag. This does not happen in Keycloak's own sanitizer policies but could happen in some custom extensions.


r/KeyCloak • • Sep 30 '26

A user with no roles assigned can still have full access

6 Upvotes

I was putting together an access review export for a Keycloak realm and found that the obvious approach, dumping each user's role mappings, misses people entirely. Not "slightly incomplete". A user can come out with nothing listed while actually holding real access.

Here is one from a test realm. She has zero role assignments, and belongs to exactly one group:

a.gruber
  enabled Β· human

  4 entitlements

  base-employee                       realm role Β· 2 paths
    β”œβ”€ via group /Retail/StoreManagers (inherited from /Retail)
    └─ via group /Retail/StoreManagers β†’ composite store-admin β†’ till-supervisor β†’ base-employee

  store-admin                         realm role
    └─ via group /Retail/StoreManagers

  pos-app:till-operator               client role
    └─ via group /Retail/StoreManagers β†’ composite store-admin β†’ pos-app:till-operator

  till-supervisor                     realm role
    └─ via group /Retail/StoreManagers β†’ composite store-admin β†’ till-supervisor

Four pieces of access, one of them in a different application, from a single group membership. Note base-employee arrives two independent ways, so revoking one route would leave the other in place. An export built on /users/{id}/role-mappings shows her with nothing to review at all, so nobody looks at her account.

Four Admin API behaviours are doing this, and none of them announce themselves:

Group roles inherit from ancestor groups. A member of /A/B/C also holds every role granted on /A/B and on /A. Keycloak does this in RoleUtils.addGroupRoles, which recurses getParent(). Notably it is not the same as the groups token claim, which is why it gets missed.

Composite roles nest, and cross the realm/client boundary. A realm role can contain a client role, so walking only realm roles under-reports access in other applications.

briefRepresentation defaults to true on /groups and /users/{id}/groups. The default response is barely more than name and id, so fields go missing before you know to ask for them.

Page size defaults are not consistent. /users returns 100 by default, but /groups/{id}/children returns 10. Omit max and every group with more than ten children is silently truncated.

I ended up writing a CLI for it, because I wanted the reason for each grant in the output rather than just the list. It is read-only, AGPL-3.0, and there is a seeded Keycloak in the repo so you can see what it finds without pointing anything at your own realm:

git clone https://github.com/softika/kcac && cd kcac
make kc-start    # Keycloak in Docker, deliberately tricky realm
make demo

https://github.com/softika/kcac

It checks itself against Keycloak's own effective-roles endpoint for every user in that realm, on Keycloak 22, 24 and 26, because a tool whose only job is being correct should not be taking my word for it.

Two things I would genuinely like to know, because they decide what I do next:

  • Do you run several realms? Reading them all from one master-realm client works, but "all realms" would quietly mean "all the ones somebody remembered to grant", and a realm created next month would be missing with nothing to indicate it. I have not solved that part.
  • Do your applications authorize on user attributes rather than roles? If access comes from something like app_groups on the user, none of the above catches it, and if that attribute is synced from an external directory then revoking it in Keycloak does nothing because the next sync puts it back.

Happy to be told I have got any of this wrong.


r/KeyCloak • • Sep 25 '26

Disabled User Message

2 Upvotes

I have a realm where users use x509 authentication to sign in..When a user gets disabled I would like to customize the message that they see. Currently it just shows "X509 certificate authentication's failed. User is disabled."

In the messages_en.properties file i have tried setting the accountDisabledMessage field and this does not seem to change this message at all for me.

Anyone know how to target this field while using x509 authentication?

TIA


r/KeyCloak • • Sep 21 '26

Using Keycloak with LDAP users as authentication for Odoo?

8 Upvotes

I am currently in the process of setting up Keycloak with LDAP as a log in option for Odoo - I can log into the keycloak realm without issue but I get

You do not have access to this database or your invitation has expired. Please ask for an invitation and be sure to follow the link in your invitation email.

The user's email exists as an account inside Odoo, and the emails match properly. Any idea what could be going on here? I have attached my Odoo keycloak config as well.


r/KeyCloak • • Sep 18 '26

The 5 HIGH CVEs fixed in Keycloak 26.7.4 explained in short

30 Upvotes

Hi, I've done this for my job and I thought it might interest some people on here as well.

I've checked the Github release for CVEs, and then looked for details on the ones that had a score of HIGH or CRITICAL on the redhat cve portal and the linked github issues.

CVE-2026-74909 (8.1): The policy enforcer that protects applications by matching incoming web requests against defined security policies failed to correctly handle web addresses that contain special encoded characters. An authenticated user could trick the enforcer into applying a less restrictive security policy to gain unauthorized access to some endpoints.

CVE-2026-17526 (7.2): A user with the impersonation role can impersonate a realm administrator, allowing them to gain full administrative control over the realm, including the ability to manage users, clients, and roles.

CVE-2026-79651 (7.5): The theme localization endpoints accept arbitrary locale tags in request and stores them permanently in memory without limits. Sending a sufficient number of tags could cause the service to run out of memory and crash.

CVE-2026-18212 (7.5): A helper in the SAML Redirect Binding implementation does not release native memory after use. Sending repeated malformed SAML requests could lead to native memory exhaustion and a denial of service.

CVE-2026-90997: Β When using MySQL or MariaDB as the database in stateless mode, the replay protection mechanism for single-use security artifacts fails to detect reuse due to a row-count semantics mismatch between the database driver's default configuration and Keycloak's application logic. An attacker who intercepts one of these short-lived artifacts can replay it to obtain unauthorized access.


r/KeyCloak • • Sep 16 '26

We couldn't reproduce the stuck DATABASECHANGELOGLOCK. Two ordinary configs half-migrated the database instead.

4 Upvotes

Everyone here knows the story. An upgrade dies partway through the migration, Liquibase's DATABASECHANGELOGLOCK row is never released, and every start after that hangs waiting for a lock nobody holds.

We tried to reproduce it on 26.0.0 to 26.7.1 against an external PostgreSQL 16.15. Two SIGKILLs, the second at 165 of 211 changesets committed. Both times the lock table showed zero held locks, and the next start finished the migration by itself in 13 seconds with all 100,002 users intact.

What did half-migrate the database was two ordinary configurations.

statement_timeout below deadlock_timeout. At 500 ms, 200 ms and 50 ms the run stopped with DATABASECHANGELOG at 157 of 211 and migration_model still on 26.0.0. Seven times in ten identical runs. The statement that dies is ALTER TABLE CREDENTIAL ADD VERSION INTEGER DEFAULT 0, which executes in 0.177 ms. It waits on an autovacuum worker holding AccessExclusiveLock, Postgres evicts that worker only after deadlock_timeout (default 1 second), and statement_timeout is charged for the wait as well as the work.

PgBouncer in transaction mode. Dead 16 to 19 seconds in, 3 of 3:

ERROR: Cannot invoke "CustomLockService.waitForLock(DBLockProvider$Namespace)"
       because "this.lockService" is null

DBLockProvider needs a session-scoped lock. The same pooler in session mode upgraded cleanly in 18 seconds. Here DATABASECHANGELOG ends at the full 211 rows and migration_model still reads 26.0.0. The schema moved. The version stamp did not.

DATABASECHANGELOG records what Liquibase did. migration_model records what Keycloak thinks it is:

select version, update_time from migration_model order by update_time desc limit 1;

Under Kubernetes the pooler case presents as one CrashLoopBackOff followed by a healthy pod.

Disclosure: MLabs is a consultancy and both links are ours. The query works without them.

https://www.mlabs.city/blog/keycloak-databasechangeloglock-pgbouncer https://ledger.mlabs.city/runs/2026-08-25-s8-pgbouncer-transaction-mode/


r/KeyCloak • • Sep 15 '26

We put Keycloakify behind a configurator so branding a login page takes 10 minutes instead of a sprint. Feedback wanted.

Thumbnail
gallery
77 Upvotes

I work at nxt Engineering GmbH from Switzerland, the company that built this. It's free, there is no signup and no account. I'm posting because we need people who struggle with Keycloak theming, not because we want traffic.

The problem we kept hitting on client projects: every Keycloak deployment eventually needs the login page in the customer's colors. Either you override FreeMarker templates, or you set up a Keycloakify project per customer and carry that through every Keycloak upgrade. For what is usually a logo, two colors and a font, that is a lot of build pipeline.

So we built cloakey.dev

You set colors, fonts, logo and layout in the browser, the preview renders the actual login components rather than a mockup, and you download a deployable JAR.

How it works:

  • Keycloakify plus Tailwind under the hood.
  • Your config compiles to CSS custom properties. They are appended to the base stylesheet, so the last definition wins and that one is yours.
  • Packaging runs client-side. The browser fetches a prebuilt base JAR, injects the compiled CSS with fflate and hands you the Blob. There is no backend, so nothing is uploaded.
  • Keycloak 22 to 26. 22 to 25 get the bundled compatibility extension, 26 and up get the plain build.
  • 38 login page variants have preview states, including OTP, reset and update password, register, verify email, select authenticator, WebAuthn and passkeys, OAuth grant, terms, error and info.
  • Visual regression baselines in CI. Storybook renders every covered story and a pixel change fails the build instead of shipping.
  • Your config is a file. Export it as versioned JSON, commit it next to your infra code, re-import it when the next Keycloak major lands and rebuild. There is also a share link that carries the whole config in the URL fragment, so it never reaches a server.

Deployment is the standard way: you drop the JAR into /opt/keycloak/providers, then Realm settings β†’ Themes β†’ select Login theme.

What we would actually like to know:

  1. Which setting did you go looking for and not find?
  2. How are you handling email templates today? Hand edited FreeMarker, or something better?
  3. Would account console theming change whether you'd use this, or is login enough?

There is a Feedback button in the configurator itself. Pick Bug, Idea or Something else, write, click send and you're done. I read all of it, so that is the shortest path from a broken page to someone fixing it.

Comments here work too, and I'm happy to answer anything about the client-side packaging, which was the part with the interesting challenges.


r/KeyCloak • • Sep 09 '26

I built a CIMD proxy so MCP clients can connect to Keycloak (or any OIDC provider) by URL alone β€” open sourced it, feel free to use it

Thumbnail
reddit.com
1 Upvotes

r/KeyCloak • • Sep 08 '26

I work on TideCloak (the Keycloak fork) and built a way to use it without touching your realm

0 Upvotes

Disclosure, I work at Tide. TideCloak is our Keycloak fork. This isn't an official product, I built it on my own time.
TideCloak is a proper identity provider and if you want everything Tide does then it's the right way to get it. It's just that it is a whole IdP, and moving yours is a big thing to ask of someone who's only trying to decide whether they like the idea yet. There's also a tidified realm signing with EdDSA, which is easy enough to plan for once you've committed and more than you'd want to take on beforehand. So I pulled out the piece that genuinely needs the node network and left Keycloak out of it. No realm, no users, no login page, no database. Whatever you're running now carries on as it is. The part I think this sub will enjoy is how the network handles claims, which is the bit of Tide I've come to like most. It doesn't take the server's word for a token. Every claim has to trace back to an attestation unit the network itself has signed, and that includes the mapper configuration that would produce the claim. You don't assert realm_access.roles, you attest the role definition, the user role mapping set and the mapper, and the nodes check those against the token before they'll sign it. A claim with no attested source doesn't get quietly dropped, it fails the whole request. The unit types line up closely with Keycloak's own config model, so it reads like something written by people who actually knew Keycloak. Upshot is that a compromised auth server can't mint itself an admin token. Roles only get granted through a change request that someone other than the filer has to approve, so one admin acting alone can't hand themselves access either.


r/KeyCloak • • Sep 01 '26

External-Internal Token Exchange in 26.7.x

6 Upvotes

Hello Everyone,

First-time poster here, so sorry if this has already been asked and answered.

The company I worked at started using Keycloak around the beginning of this year at my suggestion. I built most of the setup myself, but I am a complete beginner, so I studied Keycloak throughout and use Claude somewhat.

We use Token Exchange (V1) for external-to-internal exchanges. External IdP is e-Infra; if anyone is familiar with it, they will likely understand why we prefer the Token exchange. As I found out in version 26.7.x, the attempts at external-internal token exchange v2 were removed, and JWT Authorization Grant is recommended going forward.

But if my understanding is correct, the JWT Authorization Grant is not a very good replacement for external-internal token exchange, or am I wrong? Do you think the external-internal token exchange v2 will be supported in future Keycloak builds? Or do we have to make peace with the migration towards JWT Authorization Grant? Any suggestions are more than welcome.

Thank you, everyone, for your time and any responses.

Have a great day!


r/KeyCloak • • Aug 27 '26

Free Keycloak theme (Keycloak 24–26) β€” would love some community feedback

Post image
35 Upvotes

I've been maintaining a free, open-source Keycloak theme for a while and I'd love to get some feedback from other Keycloak users.

The goal was to create a polished, ready-to-use theme without having to rebuild and style the whole Keycloak UI from scratch.

It includes:

  • Styled login & registration pages
  • Password reset pages
  • OTP authentication pages
  • WebAuthn / Passkey authentication pages
  • Custom email templates
  • Docker + MailHog setup for local testing
  • Support for Keycloak 24–26

If you're working with Keycloak and want to try it out:

πŸ‘‰ https://github.com/dkforge31/dkforge-keycloak-business-theme-free

I'd really appreciate any feedback, issues, or suggestions β€” especially from people using it with their own Keycloak setup.


r/KeyCloak • • Aug 26 '26

How many Keycloak instances does your org actually run and who owns them?

6 Upvotes

Curious about something I keep seeing in different shapes. When Keycloak shows up in an org it rarely stays singular: projects spin up their own, an acquisition brings another, someone's PoC quietly goes to prod. How many instances does your org actually run today? Who owns them; one platform team, or each project its own?

(Disclosure: I'm from Keymate, asking to understand how common this is)


r/KeyCloak • • Aug 21 '26

Silent SSO in Mobile App with Entra ID, Intune and Keycloak

Thumbnail reddit.com
3 Upvotes