We are using Keycloak as our authentication server behind an application server. The solution is multi-tenanted by the subdomain. We need to switch the realm automatically based on the subdomain.
Example when user visits,
- abc.xyz.com/auth/ ->
abcrealm. - bcd.xyz.com/auth ->
bcdrealm.
This will allow us to unify the auth logic on all the other applications on the domain. any leads? We do have the capability of setting the realm as a header using our proxy.
cheers, Thanks in advance, Kaveen Rodigo