Help with DL-IDP Implementation in Self-Hosted Med...
# support
v
Hey Medplum team! @reshma @rahul1 We’re trying to implement the Domain-Level Identity Provider (DL-IDP) flow in our self-hosted Medplum setup, following the guidance in the docs. [https://www.medplum.com/docs/auth/methods/domain-level-identity-providers] We’ve configured our DomainConfiguration resource and are aiming to redirect users based on their email domain to our own custom web app. However, after sign-in, users are still being redirected to the default Medplum app instead of our web app. Are we missing any configuration on the self-hosted side to control or override the redirect behavior? We also looked at the Medplum implementation here [https://github.com/medplum/medplum/blob/main/packages/react/src/auth/AuthenticationForm.tsx], and it seems like it might be related to how the redirectPath is handled. Any tips or example setups would be super helpful! Appreciate any guidance.
f
Hey @Vimu , are you using the signInWithExternalAuth() method and passing the redirectUri in as a variable. I'd check out this [sample code](https://github.com/medplum/medplum/blob/main/examples/medplum-client-external-idp-demo/src/SignInPage.tsx) for reference
155 Views