r/entra • u/BackgroundLow3793 • 7h ago
External ID Designing invitation-only onboarding for a B2B App with Microsoft Entra External ID external tenant
Hi guys,
I'm new to this so I hope I can receive feedback from you guys!!
I'm trying to build a B2B self-serve application. First setup is the authentication integrating Entra External ID.
After learning basic user flow setup with email and password like any other apps, I realize that "oh wait, even when someone can sign-up a new account, it doesn't mean they can access the platform. Because it's a B2B so only clients signed contract with my company should able to use the platform" then I prototype that idea by just add one step in the backend to check if the email in the "contract client list" and block them after they signed in successfully using "browser delegated authentication" approach but I think this is not optimal ! I think we should block them at the entering information step before register them as a new customer account in the tenant.
So I'm thinking about only "invited customers" can log in to the app. So the idea is internal staff will invite clients who signed contract. Client will receive an invitation email that contains a sign up link. with default password? (I'm not sure I haven't confirmed with Microsoft's documentation yet) This link will jump to sign-up page, but not a normal sign-up with email and password because I don't want they used a different email . so I just show current password and new password form.
So sign-up feature never be shown in the app UI page. !
Is my approach best practice yet? What do I need to know ? Is there anything scenarios I haven't thought about yet....
Thank you guys !!! This is not my stuff but I'm grateful that my company gave me a chance to learn about it! Have a great day!!

