Following this question, another one raised as I have just digged the login process.
Here's my setup :
http://localhost:8103 : medplum API
http://localhost:3000 : medplum backoffice
http://localhost:8080 : keycloak
http://localhost:5175 : MyApp
I manage to login correctly with my user on the Keycloak interface and here I have two different processes :
- If the user only has one ProjectMembership associated, then after the login process between Keycloak and Medplum API using this flow
https://www.medplum.com/docs/auth/methods/external-identity-providers, I am correctly redirected to
http://localhost:5175 (MyApp) and I can indeed verify that the user is logged in
- If the user has multiple ProjectMembership associated, after the login flow I get redirected to
http://localhost:3000 (appBaseUrl) to choose the profil I want to get logged in with, after choosing the profile I still get redirected to localhost:3000 and I am logged in the medplum application.
My expectation was that :
- either before choosing the profile I get redirected to "MyApp" and the choice of the profile is then done by "MyApp"
- either after choosing the profile I get redirected to "MyApp" with the correct profile informations.
Thank you very much for your answer !