Integrating Auth0 With Azure Active Directory

Integrating Auth0’s OAuth mechanism with Azure Active Directory can be a little bit tricky! The Auth0 integration documentation available on Auth0’s Azure Active Directory page doesn’t completely cover all the steps you need to take, so we’re presenting a more complete guide here. There are several core tasks, each of which is then broken down into steps:

  1. Configure App In Azure AD
  2. Create The Client Secret In Azure AD
  3. Configure API Permissions
  4. Create And Configure Auth0 Application
  5. Create Enterprise Connection In Auth0
  6. Enable Enterprise Connection For Application
  7. Testing
  8. Optional Azure AD Permissions

There is also an appendix of handy information at the end! Should you have any questions regarding any of these core tasks for Auth0 integration with Azure Active Directory, please contact us.

Task 1: Configure App In Azure AD

You can find some help on this in the official Microsoft documentation.

The key steps are:

1. Navigate to Azure AD in the Azure Portal.

2. Click the “App Registrations” button in the side menu.

app registrations

3. In Azure AD App Registrations, create a new App Registration.

new registration

4. You should now see the App Registration screen.

Integrating Auth0 With Azure Active Directory

5. Enter the name for your application (you can change this later if you get it wrong).

6. Select “Accounts in this organizational directory only” (multi-tenant is beyond the scope of this article).

7. Configure redirect URI selecting “Web” and entering the callback URL https://{your-auth0-tenant} (obviously, replace {your-auth0-tenant} with your Auth0 tenant name).

8. Click “Register”.


9. You should now see the newly created app Overview screen.

Integrating Auth0 With Azure Active Directory

10. IMPORTANT!! Copy the Application (client) ID from the overview screen of your newly created app registration, we’ll need this later.

To find out how to create the client secret in Azure AD, click below to go through to page 2.

Nick McKenna
Since 2004, Nick McKenna, BSc, MBCS Biography has been the CEO of McKenna Consultants. McKenna Consultants is a bespoke software development based in North Yorkshire, specialising in Cloud development, mobile App development, progressive web App development, systems integration and the Internet of Things development. Nick also holds a First Class Degree in Computer Science (BSc) and wrote his first computer program at the age of nine, on a BBC Micro Model B computer. For the last 21 years, Nick has been a professional computer programmer and software architecture. Nick’s technical expertise includes; Net Core, C#, Microsoft Azure, Asp.Net, RESTful web services, eProcurement, Swift, iOS mobile development, Java, Android mobile development, C++, Internet Of Things and more. In addition, Nick is experienced in Agile coaching, training and consultancy, applying modern Agile management techniques to marketing and running McKenna Consultants, as well as the development of software for clients. Nick is a Certified Enterprise Coach (Scrum Alliance), SAFe Program Consultant (SAI), Certified LeSS Practitioner (LeSS) and Certified Scrum@Scale Practitioner. Outside the office, Nick is a professional scuba diver and he holds the rank of Black Belt 5th Dan in Karate.