Azure AD multi tenant authentication - how to whitelist specific tenants? - Stack Overflow

What I want to achieveI'm building a web app with an SPA front end that will be hosted in Azure a

What I want to achieve

I'm building a web app with an SPA front end that will be hosted in Azure and which will use Azure AD authentication.

I want all users from my main tenant to be able to access the app without having to be invited.

I want to be able to invite external users to access the app.

My plan

Create a B2C tenant in single tenant mode. External users will be invited to this.

In the B2C tenant create a custom sign up policy that permits only users in the main tenant to sign themselves up to the B2C tenant.

Questions

Will this work?

Is this the best approach?

What I want to achieve

I'm building a web app with an SPA front end that will be hosted in Azure and which will use Azure AD authentication.

I want all users from my main tenant to be able to access the app without having to be invited.

I want to be able to invite external users to access the app.

My plan

Create a B2C tenant in single tenant mode. External users will be invited to this.

In the B2C tenant create a custom sign up policy that permits only users in the main tenant to sign themselves up to the B2C tenant.

Questions

Will this work?

Is this the best approach?

Share Improve this question edited Jan 29 at 13:38 Neutrino asked Jan 29 at 11:46 NeutrinoNeutrino 9,74510 gold badges66 silver badges99 bronze badges 4
  • 1 Refer this SO thread and let me know it is useful or not – Pratik Jadhav Commented Jan 29 at 12:28
  • I didn't provide enough info. My web app is an SPA. That example is just enforcing the tenant whitelist in the web app. That's fine if it's a server side web app, but you can't do that in an SPA. – Neutrino Commented Jan 29 at 13:37
  • you could just use external ID in your main tenant: learn.microsoft/en-us/entra/external-id/… – Thomas Commented Feb 2 at 3:50
  • True, but I don't want external users in my main tenant. These external users aren't collaberating with us directly, we are just giving them access to some specific applications. – Neutrino Commented Feb 2 at 17:06
Add a comment  | 

1 Answer 1

Reset to default 0

If by invite you mean send an email, B2C out of the box does not have an invite feature.

You'd have to write this yourself and use your own email provider.

In terms of whitelisting, refer to the B2C samples here, here and here.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745300655a4621415.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信