I have created two active directory in azure which connect with two different local active directory (two different companey)
I Have application in which i want both azure active directory user can login on same instance of application i don't want to host two instance of application .
After authentication i need to to check from which active directory user belongs .
Any Help would be really appreciated since i am struggling from last three days
You need to create a multi-tenant application, like pksorensen's comment states. Essentially what you want to do is register the application in one of your directories and update its configuration to make it multi-tenant capable (discussed in the links below). When a user from another directory signs in to the application, your app starts a consent flow by hitting Azure AD's common authentication endpoint (different from your tenant-specific one), and then displays a consent dialog. After the user consents, Azure AD registers the application in the other directory.
All the information you need about implementing this scenario:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.