Hi,
I‘m looking for a best practice for my use case. Maybe anyone here had the same usecase and can share knowledge.
I have two user federations in one realm (different active directories). Because both are completely independent, in occurs that the same username is used. In Microsoft Applications you can use something like “ad1\ttestuser” and “ad2\ttestuser”.
Is there a way I can configure Keycloak to choose the user federation on login? A solution would be to add a prefix to the username in the mapper but there is no way to do it. I also could use different realms but this would result in a lot redundancies.
Thank you in advance