Microsoft Login

In order to enable users to login with Microsoft, you must create an application with Microsoft to serve as the OAuth provider.

Step:-By-Step Guide

Follow the steps to below to configure Microsoft login.

Step 1: Open Project

To create your OAuth application, go to Microsoft Azure and select Manage Azure Active Directory.


Step 2: Register Your Application

Click on App registrations and then New Registration.


Then, do the following:

  • Set your application name.
  • Select your Supported account types.
  • Set your Redirect URI (for example, http://localhost:3000/account/social/success).


πŸ“˜

Supported Account Types

Choose the option Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)


Step 3: Get ClientId and Client Secret

Your Microsoft ClientId is located on your Microsoft app's Overview page. Look for Application (client) ID.

To create a client secret, open Certificates & secrets and click on New client secret.


Set an expiration time and description for you client secret.


Copy and save the Value for your client secret. You will not be able to see it again in your Microsoft account.


Step 4: Enter Credentials In Frontegg

Go to Authentication ➜ Settings ➜ Social Logins, click on the Google Login configure button and enter your Google Client ID, Client Secret, and Redirect URL.


Step 5: Test Microsoft Button

In your login screen, you should see a Microsoft button that redirects to the Microsoft OAuth Consent screen for login. Test it to make sure it works.


πŸ“˜

Set Who Can Login With Microsoft

By default, only invited users can login with Microsoft. If you want to allow new users to signup with Microsoft, go to Authentication ➜ Settings ➜ Authentication flow and enable Allow Signups.


Did this page help you?