Base solution for your next web application
Open Closed

Multitenancy with Azure AD for authentication #6090


User avatar
0
JapNolt created

We are building an application on ANZ using multitenancy and we need to use Azure AD for authentication. Our project is Core/Angular. Is this possible? If so, is there any guidance available?

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

3 Answer(s)
  • User Avatar
    0
    ryancyq created
    Support Team

    Hi, do you mean azure ad authentication for some of the tenants and the rest is still using classic authentication?

    If so, there has been a discussion around this at https://github.com/aspnetzero/aspnet-zero-core/issues/369

    If not, to authenticate angular with azure ad, you can use OpenId connect approach. See https://github.com/aspnetzero/aspnet-zero-core/issues/1292#issuecomment-408000612

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    JapNolt created

    Yes, I would like the ability for a tenant to choose whether to use classic authentication or Azure AD (ADAL).

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

    @japnolt

    A tenant user can directly login into system or can choose to login with OpenId Connect (Azure AD in your case). But, in current design you can't disable one of them for a specific tenant.

    If you need that, you can create two settings (Tenant based) and disable the related UI parts according the value of your new settings.

    You will also need a screen to change the values of those settings based on the tenant.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)