Add Microsoft Account Login to Your App

This guide will show you how to add functionality to your web app that allows your users to log in with Microsoft Accounts.

1. Set up your app in the Microsoft Azure portal

To learn how, follow Microsoft's Quickstart: Register an application with the Microsoft identity platform (Preview) doc.

During this process, Microsoft will generate an Application (client) ID for your application; you can find this on the app's Overview screen. Make note of this.

While setting up your app, make sure you use the following settings:

  • When asked to set a Redirect URI, enter https://YOUR_DOMAIN/login/callback.

Find your Auth0 domain name for redirects

If your Auth0 domain name is not shown above and you are not using our custom domains feature, your domain name is your tenant name, plus For example, if your tenant name were exampleco-enterprises, your Auth0 domain name would be and your redirect URI would be

If you are using custom domains, your redirect URI will have the following format: https://<YOUR CUSTOM DOMAIN>/login/callback.

2. Add credentials to your Microsoft app

To learn how, follow Microsoft's Quickstart: Configure a client application to access web APIs (Preview) doc. You want to generate a Client secret. Once generated, make note of it.

3. Create and enable a connection in Auth0

Set up the Microsoft social connection in Auth0. Make sure you have the Application (client) ID generated in Step 1 and the Client Secret generated in Step 2.

4. Test the connection

You're ready to test your connection.