Set up the Microsoft Azure DevOps Boards spoke using OAuth
Integrate the ServiceNow instance and Azure DevOps Boards using OAuth 2.0 authentication to authenticate ServiceNow requests.
Before you begin
- Request an Integration Hub subscription.
- Activate Azure DevOps Boards spoke
- Role required: admin.
Important:
- If you are setting up the Azure DevOps Boards spoke using OAuth, you need not set up the spoke using personal access token.
- If the Azure DevOps Boards spoke is already configured and set up, ensure that you set the value of Active to false for the existing connection before you proceed to set up the spoke using OAuth.
If connection is already configured, set the value of Active to false.
Register an application using the Microsoft Azure portal
Provide authorization to the ServiceNow instance by registering an application in the Microsoft Azure portal.
Before you begin
Role required: admin.
About this task
Complete these steps from the Microsoft Azure portal.
Procedure
Log in to the Microsoft Azure portal as an admin.
Click App Registrations.
Click New registration.
On the form, fill in fields as per your requirement.
For Redirect URI, specify the ServiceNow instance URL in this format:
https://<ServiceNow-Instance-Name>.service-now.com/oauth_redirect.do.
Register an application in Microsoft Azure portal.
Click Register.
The application is created and the values of Application (client) ID and Directory (tenant) ID are displayed.
Values of Application \(client\) ID and Directory \(tenant\) ID displayed after application creation.
Copy and record the values of Application (client) ID and Directory (tenant) ID.
Generate a client secret for the application.
Under Manage, click Certificates & secrets.
Click New client secret.
On the form, enter provide a description and specify the duration after which the secret expires.
Click Add.
Create a client secret.
The client secret is created and its value is displayed.
5. Copy the value of client secret for later use.
Copy the value of client secret for later use.
Provide the required API permissions to the application.
Under Manage, click API permissions.
Click Add a permission.
Under Microsoft APIs, click Azure DevOps.
Add API permissions.
4. Expand **vso** and select these permissions **vso.project\_manage** and **vso.work\_full**.
The **User.Read** permission under **Microsoft Graph** is selected by default. Configure other permissions as per your requirement.
5. Click **Grant admin consent for ServiceNow**.
Grant admin consent for ServiceNow.
6. When prompted, confirm your choice to grant admin consent for ServiceNow.
Result
An application has been registered in Microsoft Azure portal. You can use this application to connect to your Azure DevOps project from ServiceNow instance.
Create a connection record for the Microsoft Azure DevOps Boards Spoke
Create a connection record that enables the ServiceNow instance to send connection requests to the Microsoft Azure DevOps Boards.
Before you begin
Role required: admin
Procedure
Navigate to All > Process Automation > Workflow Studio.
Select Integrations.
In the Search all connections field, enter
Azure DevOps Boards.Confirm that the Outbound tab is selected.
In the Azure_DevOps_Boards tile, select View Details.
View Details button on Azure DevOps Boards tile.
Select Configure.
Fill the form.
Field Description Connection Name Option to provide the name of the connection record. The default and read-only name of the first connection record that you create is Azure_DevOps_Boards. Connection URL Option to provide the endpoint that the alias uses to interact with your Azure DevOps environment. Client ID Option to provide the client ID that you generated while registering an application on Microsoft Azure portal. Client Secret Option to provide the client secret that you generated while registering an application on Microsoft Azure portal. OAuth Redirect URL Option to provide the redirect URL. You must provide the redirect URL in the format https://<your-instance-name>.service.now.com/oauth_redirect.do.Tenant ID Option to provide the tenant ID that you generated while registering an application on Microsoft Azure portal.
Create Connection form.
Select Create and Get OAuth Token.
You log in to the Microsoft Azure portal and upon successful authentication, OAuth token is issued.
OAuth token is available.