Authentication App with Next.js and Microsoft Graph (Part 1)
Introduction
This is a starter app for demo purposes, you will learn how to build a simple authentication app using Next.js, NextAuth, Typescript, and Microsoft Graph. The app will allow users to sign in with their Microsoft Entra ID and view their profile information.
What is Microsoft Graph?
Microsoft Graph is an API that allows you to access data and services from Microsoft 365. You can use the Microsoft Graph API to build applications that interact with millions of users around the world, accessing data in a consistent way across the Microsoft 365 ecosystem.
Prerequisites
1. Configuring an Application in Microsoft Entra ID
In this session, you will learn how to create an application in Microsoft Entra ID ( formally Azure Active Directory (AAD)) and configure the necessary permissions so that the application can access the user's data.
Before starting to develop the application, you need to create an application in the Microsoft Entra. For this, go now to the Azure Portal, and click on Microsoft Entra ID.
Now, let's go to the step by step!
Step by Step
We will use these values to configure the application in the env.local file.
Configure the Application
Obs.: don't forget to save this value, you will need it later. If you lose it, you will need to create a new one.
Congratulations! ??????
You have successfully created an application in Microsoft Entra and configured the necessary permissions so that the application can access the user's data.
In Part 2, I'll show you how to create the Next.js application and configure it to work with Microsoft Entra.
Undergraduate Student At SLIIT | Bsc in Information Technology Specializing in Software Engineering
7 个月Can you show a example with RBAC with NextJS + Entra