Step 1: Create the new application
- Log into the Azure Management Portal for your Office 365 tenant.
- Go to the Azure Active Directory tab and select App Registrations.
- Select "New Application Registration".
- Give the application a name and keep the default selection of "Web App / API".
- Enter a Sign-on URL (the value
...
- does not matter other than being unique) and click "Create".
...
- Select your new application
...
- from the Registered Applications list
...
- .
- Go to Required Permissions and click
...
- "Add".
...
- In the "Select an API" section, select the "Windows Azure Active Directory" application.
...
- In "Select Permissions", select the following "Application Permissions":
...
- After saving
...
- , select "Grant Permissions" to apply the changes.
Step 2: Get the Client ID and Secret Key
- To get the ClientID, copy the value from the Application ID in the App Properties tab.
- To get a new client secret key, go to Keys in the Registered App menu.
- Add a key description and a duration.
- After saving, you'll get the key.
- Store it in some place safe, because
- it is shown only once and won't be available after leaving the page.
...
{"serverDuration": 82, "requestCorrelationId": "5e2e21e89d97c5da"}