--
You received this message because you are subscribed to the Google Groups "Keycloak Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-dev/2323c9d1-ff31-432c-bb68-67e4ad75c18an%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-dev/CAJgngAdnTk%2B_FbCV12nQeif56MdWVOZ3O1vXHDdBRkkkhTH4mw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-dev/CAK-7U1jc075r6OVvP5Mn-1UAmQ%3Dy7r2MEWNUPZhG3syW7UPJqw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-dev/CAJgngAczY01fMAmd0PKjBShxPLtTQ2fr1iJkT_JvSt0S8Sg-Ag%40mail.gmail.com.
Thanks for the summary.
I think point 3. does not cover the case when you have multiple customers (customer1,customer2,...,customerN) with differentGoogle Workspace (Apps for Business) domains and site configurations that should be able to use a common realm.A customer might also have Google Workspace configured to use another third-party auth provider that they don't want to use with the Keycloak.See "Set up single sign-on for managed Google Accounts using third-party Identity providers": https://support.google.com/a/answer/60224?hl=en
The google IdPs for these customers are configured differently, e.g. with different IdP mappers and are hidden by default on the login page.
To send the customers to their corresponding google apps login, you can now generate a corresponding login URL which uses the kc_idp_hint parameter.
Another possibility is to create a custom domain like customer1.login.mysaas.com which will be evaluated by a special authenticator and send the login to the appropriate IdP instance.
I have found this use-case very often with customers.
Also with the other social IdPs (Facebook, etc.) it could be that you want to use different social client configurations.
I'd say I see this in round about 1of 20 customers.Having multiple different google workspace integrations is quite common, if you work with companies who are split into different sub companies that don't share a single user directory.Most of the time, the IdP buttons are visible on the login site and the user need to choose their IdP by clicking on the proper button. In some scenarios this process is streamlined a bit by exposing the keycloak server under multiple domains, where the proper IDP to redirect to is selected based in the (forwarded) hostname in the request as you described. A different approach is to use an Identity first login flow, and redirect to the proper IDP based on user information like email domain, attribute or username format.I have seen these approaches in combination with google, gitlab (enterprise) and github (enterprise) so far.