I am building a windows phone 8 app using Azure Active directory for authentication. This would be a multi-tenant application where once the user logs in I would like to read certain basic information from their tenant in AD. I am planning on using http://azure.microsoft.com/en-us/documentation/articles/mobile-services-how-to-register-active-directory-authentication/ as a starting point and will use a browser control in my app to take the user to the standard azure AD login page. So here is my question, while I know how to use Azure AD Graph API to find specific information about my own tenant, how do I find out the tenant domain name of the external user so I can use Graph API to find information about their tenant/AD? If I had created the login and password input fields in my own app, I could have easily figured out their domain but since I redirect them to the Azure AD service....I am having a hard time figuring out how I will determine their domain name so I could then do a Graph API query on it? Thanks for your help! |
mujno