---
title: How to connect MS Azure to Thinkific via OAuth2
description: "**Setting Up A Microsoft Azure Connection** **Important**: This is an advanced topic and typically requires administrative rights in your Azure Active Directory. We highly recommend consulting with your MS Admin or similar before attempting to set up an application. The…"
url: "https://www.wooninja.io/documentation/how-to-connect-ms-azure-to-thinkific-via-oauth2/"
updated: "2023-12-05"
category: WooNinja SSO
---

# How to connect MS Azure to Thinkific via OAuth2

**Setting Up A Microsoft Azure Connection**

**Important**: This is an advanced topic and typically requires administrative rights in your Azure Active Directory. We highly recommend consulting with your MS Admin or similar before attempting to set up an application. The set up can vary based on your Azure set up and versioning. This guide is a high level overview only.

1. Navigate to the Microsoft Azure Portal and authenticate.
2. Navigate to Azure Active Directory
3. Click on **App Registrations**
4. Click on **New Registration**

![](https://www.wooninja.io/wp-content/uploads/2023/12/azure_new_app_oauth2-1600x497.png)

5. Give your new application a suitable name e.g. *WooNinja SSO* and select the tenant types. In general, we recommend a single tenant per application.

6. Choose 'web' as your platform and enter your redirect URI. The format of this is your WooNinja SSO Instance URL with /login/azure/callback e.g example.connect.com/login/azure/callback

7. Click **Save**

8. On the next page, record your Display Name, Application ID, and Directory ID values of the app registration. You will require these later. Then click **Certificates & Secrets**

![](https://www.wooninja.io/wp-content/uploads/2023/12/azure_complete_app.png)

9. Click New Client Secret and generate a secret in line with your orgs policies e.g. Expiry date.

![](https://www.wooninja.io/wp-content/uploads/2023/12/azure_client_info-1600x807.png)

Click **Add**

**Important**: Note the following values as the new secret as it will not be displayed again!

- Secret ID (Do not confuse this with the Application Secret, see below)
- Value (This is the Application Secret)

10 (*Optional*) Click **Authentication**, scroll to the bottom of the page and enable**public client flows**. Don't forget to click **Save**.

![](https://www.wooninja.io/wp-content/uploads/2023/12/azure_public_flows-1600x1074.png)

11. Open your WooNinja SSO application and click **Add Connection**. Fill in your details:

**Provider**: Microsoft Azure

**Name**: Use a memorable name, especially if you are using multiple tenants

**Client Secret**: *See the 'value' from step 9 above.*

**Client ID & Tenant**: See your application overview, the **Application** (Client ID) and the **Directory** (tenant) ID are the fields you need.

![](https://www.wooninja.io/wp-content/uploads/2023/12/azure_client_details-1600x854.png)

Note, you will need to click **Add** and type *tenant* to add the tenant value.

When complete, your set up should look like this:

![](https://www.wooninja.io/wp-content/uploads/2023/12/azure_connection_add-1600x1039.png)

**Important**: Double check your details before you finish as you cannot edit the configuration once you have completed the set up.

Click **Create**, the **View Connection** **Details**.

![](https://www.wooninja.io/wp-content/uploads/2023/12/azure_test-1600x903.png)

**Important**: Test your connection by copying the login URL into an incognito browser.
