Background:
We have created a SaaS web application build with NodeJS on Heroku platform. Using Salesforce and Hubspot API's any users of those CRMs can OAuth into our application and pull certain data from their accounts. We have gotten a request to integrate our solution with Microsoft Dynamics 365 CRM which let me to the problem I am having at the moment ...
Research:
I have attempted to search Slack and found the following article with suggestions, but still ran into the same symptom described below. (https://stackoverflow.com/questions/40673545/can-users-from-an-unmanaged-azure-ad-directory-sign-into-an-azure-ad-multi-tena)
Symptom:
I am attempting to follow the GitHub sample:
https://github.com/AzureAD/azure-activedirectory-library-for-nodejs/blob/dev/sample/website-sample.js
I've registered my application under Azure Active Directory as a Web App / API with the Required Permissions set to Dynamics CRM Online. I have created my secret key and have filled in the various parameters in the sample above, however when I run my NodeJS application I am presented with the following error:
Request Id: 6ccd83dd-4864-4384-a69d-c2be05701600
Correlation Id: a31d119b-ddc0-459e-979d-ed2b28b56118
Timestamp: 2018-08-03T19:50:40Z
Message: AADSTS65005: Using application '<Tenent>' is currently not supported for your organization <Tenent>.com because it is in an unmanaged state. An administrator needs to claim ownership of the company by DNS validation of sell-on.com before
the application Sell-On can be provisioned.
Questions
- First question is given the background described above ... am I on the right path to allow any users of different Microsoft Dynamic CRM's to OAuth and grant us access to pull data on their behalf?
If I am on the right path then my questions are:
- Even though I created our Azure Portal account, I am listed with a User Type of Member ... shouldn't I be an Admin?
- How do I become an Admin so that I can claim ownership.
- Based on the error above is this just the tip of the iceberg of issues I am bound to face or is it to hard to tell?
Thank you for taking the time to read this and I hope to get some helpful feedback.