Keycloak Multi Tenancy Using Subdomains

Hello Everyone,

Has anyone implemented any sample POC on keycloak muti realm solution using subdomain

e.g.

For realm:

realm1 => realm1.example.com/auth
realm2 => realm2.example.com/auth

If anyone has implemented any solution, can you please share with me. i want to know how its working and what changes are required

Your question shows resemblance with this post: Multi tenancy, multi realm configuration with different subdomains

I’m not sure if @xgp would answer differently now but the original post is quite new. However, while there isn’t a built-in solution for this, using a reverse proxy seems to be a suitable approach for your case.