Capturing Realm name also in login form

We are working on a multi-tenant application which is secured using keycloak. Tenants are represented using realm. When a user is trying to access the application, first I need to capture the realm and then do the redirection to keycloak. Instead of that is there any possibility to capture the realm name also in keycloak login form.
Any input will be appreciated.

Multi-tenancy for SaaS applications is commonly handled using sub domains.

Ref:

1 Like