Logo Integray
Back to all posts
|
4 minutes

OAuth2 Authorization Process Using Microsoft Azure

This article walks through the process of setting up OAuth2 authorization in Integray using Microsoft Azure login.

This article walks through the process of setting up OAuth2 authorization in Integray using Microsoft Azure login.

🔧 Creating the Azure Application

The first step is to create an application in the Microsoft Azure portal. This will generate the credentials required for OAuth2 authorization.

2024-09-30_115428
2024-09-30_115651

Required Details During App Registration:

  • App Name
  • Supported Account Types:
    Select the first option:
    Accounts in this organizational directory only (Single tenant)
  • Redirect URI:
    Although marked as optional, this will be required later. It can be skipped for now and configured afterward.
2024-09-30_135958

After entering the necessary details, click Register. The newly created application will now appear in the App registrations grid.

2024-09-30_131406

🔑 Adding Client Credentials

To proceed with the authorization, a client secret must be created:

  • Open the newly registered application.
  • In the left-hand menu, go to Certificates & Secrets.
  • Create a new client secret.
2024-09-30_203940
2024-09-30_204058

⚠️ Important: Client secret values can only be viewed once — immediately after creation. Make sure to save the value before leaving the page.
Only the value is needed later, not the secret ID.
In the table, you will see the name, expiration date, value, and secret ID.


🌐 Retrieving Endpoint URLs

Navigate to the Overview section of the application and open the Endpoints tab. This tab provides key URLs required for authorization setup in Integray.

2024-09-30_145343

Further steps for configuring the Redirect URL will be provided below. 


🔄 Setting Up OAuth2 in Integray

Now switch over to Integray.
In the Authorizations section, create a new authorization:

  • Click +Add
  • Select OAuth2 as the provider.

Configuration Settings:

  • Login URL:
    Use the OAuth 2.0 authorization endpoint (v2) from Azure’s Endpoints tab.
  • Login Query Params:
    Use the pre-filled value:
    response_type=code
  • Request offline_access scope:
    Set this checkbox to True
  • Client ID:
    Copy the value from Application (client) ID in Azure’s Overview section.
  • Client Secret:
    Paste the value of the previously saved client secret.
  • Redirect URI:
    This is predefined in Integray as:
    api/Callback/GenericOAuth2
  • Access Token URL:
    Use the OAuth 2.0 token endpoint (v2) from Azure’s Endpoints tab.
2024-10-01_082902

🔁 Configuring the Redirect URL in Microsoft Azure

Now go to the Microsoft Azure platform and configure the Redirect URL:

Steps:

  • Click Configure
  • Click on +Add a platform
  • Select the platform: Web
  • Insert the Redirect URL copied from your authorization in Integray

2024-09-30_144510
2024-09-30_203534

🧩 Configuring Connectors

Currently, it is recommended to use this authorization with the Advanced Rest API Connector.

2024-10-01_082937


For more details and specifications of endpoints, refer to the documentation in the Endpoints tab for the selected product.


🎯 Reviewing and Customizing Scopes

In the Scopes tab, you must define custom scopes to specify permissions according to your company’s needs. This should follow the principle of least privilege to ensure optimal security.
2024-10-01_082946

2024-09-30_153150

As seen in the Auth tab on LinkedIn for developers, Scopes are defined based on the product selected for the app.
In Integray, the same scopes must be entered — otherwise, the authorization will not function correctly.


✅ Finalizing the Authorization

Once the connectors and scopes are configured, the authorization setup is complete.

  • Accept the requested permissions
  • Click the Authorize button
2024-09-24_110522

After successful authentication, the status will change from Not authorized to Authorized

2024-09-30_152844

Finally, click the Save button to store the new authorization. 

2024-09-30_155317

With OAuth2 successfully configured, you’re now set to build secure, scalable, and future-proof integrations in Integray.

Cookies Legal Privacy Policy