Multi tenancy, multi realm configuration with different subdomains

We’re looking to create an application which will have a unique subdomain and realm per customer, eg:
customer1.example.com
customer2.example.com
customer3.example.com

We’ve got keycloak hosted on keycloak.example.com, hosted behind an AWS elastic loadbalancer.

What we’d like to do is allow customers to remain on their subdomain rather than be directed to log in at keycloak.example.com/realms/customer1/etc, something like customer1.example.com/login.

Is this a feasible configuration, and if yes what kind of configuration does Keycloak require without having an instance per customer for
customer1.example.com/login
customer2.example.com/login
customer3.example.com/login

I’ve looked through similar requests on here but I wasn’t able to find information on this type of set up.

It’s been asked for a lot, but there isn’t a feasible way to do it right now.

1 Like