I should’ve pointed out that this is my first time using Keycloak, so expect the unexpected from me 
I guess it’s best to describe the goal I have in mind, so here’s the context first.
Context:
- realm of
rent-a-cars, but each rent a car is its own organization
- realm of
customers
The backend I have in mind is:
- one NodeJs Strapi for the
rent-a-cars realm (not setup yet)
- one NodeJs Strapi for the
customers realm (not setup yet)
The frontend I have in mind is:
- one Angular for the
rent-a-cars realm (not setup yet)
- one Angular for the
customers realm (not setup yet)
Goal:
I wish to combine these 3 frameworks i.e. Keycloak, NodeJs Strapi, and Angular, per realm.
Strategy - Strapi + Keycloak Phase:
Strapi says that I have to setup a Client in Keycloak, and hook up my Strapi to it. Source from docs: Keycloak provider setup for Users & Permissions | Strapi 5 Documentation
That seems understandable.
I noticed the flow in your video where the user would enter his email, and the linked Identity Provider would be used to route/link the user to the appropriate organization login screen, and thus, it would allow him to login through it. I like this, and I want to keep it.
Problem:
I don’t know if this behavior can be applied to the newly created Client, nor how. My hands are tied on the Strapi side, but on the Keycloak side, I have no idea how to do it.
Questions:
Question 1: I am not sure what the best approach is here but, but is it possible to have a setup like this:
- Strapi connected with Keycloak through the aforementioned Client
- Still have the routing/linking ability of the Identity Provider available in that client
Question 2: Do all of my organizations have to have a unique Identity Provider, or can they all share a general Identity provider, but have it point to different domains? I feel like you’re gonna say yes, but I just want that extra clarification if possible.
Additional note: I am experimenting with this idea, so you can probably see many holes in it. It’s also true that I haven’t setup anything besides the Keycloak on my local Docker container. It’s also true that I am a struggling beginner in Keycloak.
Any code/config samples (if applicable, or possible) will be highly appreciated!
Thank you for your time and patience!