Auto-select realm

Dear readers,

As the title states, within our project we have to provide for quite a lot of domains. These domains should not know anything about eachother, and we want to appoint a single admin for each of those domains to ‘manage’ their own domain, users, clients, etcetera.

The problem we are trying to solve is ‘Selecting the proper realm for a user based on his/her domain’. This domain can be part of an email address or part of an active directory logged in user. For now, we have not found a way to automatically (or through an API call) determine what realm’s login page we should show.

Is there anyone who knows more about this subject, or any extension of Keycloak that does said functionality?

1 Like