Forum Discussion
ingolfurprogrammis
Dec 28, 2023Copper Contributor
Authentication from multiple, but certain, tenants to OAuth apps
Got an SPA App and Api I'm using MSAL for authentication. The endusers come from a limited set, but not a singular, tenant. Since for the application authentication I can only select a single tenant...
juliansperling
Dec 28, 2023Brass Contributor
So the other Tenants have added the Application to their own Tenants or do you add the Users from the other Tenants to the one the App Registration Lives in as Guests?
If you have registered a Multi Tenant Application in Entra ID I don't know of any way to restrict the tenants that can use it, so you would have to check the Tenant ID in the SSO Token within your application and create your own block logic.