Hello!
I’m trying to set up Keycloak in a multi-tenant environment, where each tenant is accessing the same app through a subdomain i.e. customer1.myapp.com
and customer2.myapp.com
etc.
As you can’t currently use a wildcard for the subdomain in the Redirect URI for the client (this would be ideal), I am instead trying to set up a redirect URI that then will redirect you to the correct subdomain similar to how it is done in this guide, where dispatch.myapp.com/*
is the redirect URI.
However, I’m using react-keycloak
package which seems expect the url I’m on i.e. customer1.myapp.com
to match the redirect URI, and I’m getting a invalid redirect URI error…
What is the recommended way to implement Keycloak across multiple subdomains for the same app? Any clues appreciated
Thanks!