Allow known users to log in to my web app (SPA) with Entra Id

Joakim 0 Reputation points
2025-01-29T15:10:19.71+00:00

We have a web application (SPA) where users log in with mail address and password.

A particular customer is using Entra Id for the organisation's users.

Most of their users are known in our application thru matching email addresses.

I'd like to offer those users to log in using Entra Id and Single Sign-on.

In Microsoft Entra Admin Center, we've created a tenant and added our application.

We’ve changed our app to accept login with MSAL.

The login works fine, but only with the two users we've added manually.

Is there any way to accept all users?

In principle any user with valid id from Microsoft is ok for now.

We have set up the application with ‘Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)’

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,059 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.