Configure OAuth application in Microsoft Azure
Create an OAuth application in Microsoft Azure to verify and authorize connection requests from your ServiceNow instance.
Before you begin
Role required: admin
Access to Microsoft Azure portal to create an OAuth application.
Procedure
Register an application on Microsoft Azure.
Log in to https://portal.azure.com/.
Select App registrations.
Image omitted: MS-sharepoint-spoke-app-reg-button.png
App registration button.
App registration button.
3. On the App registrations page, select **+ New registration**.
4. Fill the form.
|Field|Description|
|-----|-----------|
|Name|Custom name of the OAuth application that you are creating.|
|Supported account types|Accounts the tenant in Microsoft Azure AD directory supports.|
|Redirect URI|The redirect URL to your ServiceNow instance that requests connection to Microsoft SharePoint online. From the Select a platform list, select Web and enter your ServiceNow instance URL in the format `https://<instance-name>.service-now.com/oauth_redirect.do`.|
Image omitted: ms-exchng-ol-redirect-url.png
Add Redirect URL.
Add Redirect URL.
5. Select **Register**.
The OAuth app is registered.
- To get the application ID, from the OAuth application page, copy the Application (client) ID.
Image omitted: MS-sharepoint-copy-client-ID.png
Application Client ID.
Application Client ID.
You need the Application \(client\) ID when you set up the connection record for Microsoft SharePoint Graph.
Get the client secret.
- On the OAuth application page, select Certificates & secrets.
Image omitted: MS-sharepoint-certificates-and-secrets.png
Certificates & secrets tab.
Certificates & secrets tab.
2. Select **+ New client secret**.
Image omitted: MS-sharepoint-add-a-secret-button.png
New client secret button.
New client secret button.
3. Set up the client secret.
Image omitted: MS-sharepoint-client-secret-details.png
Client secret details.
Client secret details.
- Description: A contextual description of the client secret.
- Expires: Time limit after which the client secret is invalid.
**Note:** You need the client secret when you set up the connection record for Microsoft SharePoint Graph.
4. Select **Add**.
The Client secret is generated.
5. Copy the secret and store at a secure place.
Image omitted: MS-sharepoint-client-secret-copy.png
Client secret copy button.
Client secret copy button.