I am thinking about developing in general a web application for enterprise. What i am thinking about is following scenario:
The application should be able to serve multiple customers (called multitenancy?). That means that multiple companies could use the software for their employees.
Each of them could have a own azure ad or maybe not. Therefore i would like to know if it is possible to authenticate against multiple/different azure ad's?
Lets assume that a user types in his email address [email protected] then i would try to authenticate him against the ad whihc is configured behind the companyA.com ad, when someone tries to login with [email protected] then i would try to authenticate against azure ad which is configured for companyB.com.
Is this possible? How could i do this?