Skip to main content

Authentication App with Next.js and Microsoft Graph

Level: Beginner-Intermediate

Authentication App

Introduction

In this workshop, you will learn how to build a simple authentication app using Next.js, TypeScript, and Microsoft Graph. The app will allow users to sign in with their Microsoft account 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

To follow this workshop, you will need:

Beyond that, you will need a Microsoft 365 Developer Program account.

If you have doubt how to create it, you can watch this video. It explains how to create the account. This account it's free.

Sessions

SessionTopics
IntroductionHere you will have an introduction to the workshop.
1. Configuring an Application in Azure Active DirectoryHere you will learn how to create an application in AAD and configure the necessary permissions so that the application can access the user's data.
2. Structuring the ProjectIn this in this session, we will create the project structure and configure the environment.
3. Creating the Application ComponentsIn this session, we will create the components that will be used in the application.
4. Defining AAD Provider in Next.jsIn this session we will define the AAD Provider in Next.js.
5. Creating the pages for the applicationIn this session, we are going to create the pages for the application.
6. Creating Configuration FilesIn this session we will create the configuration files for our application.
7. Important changes in the Admin & Reminder PagesIn this session we will make some important changes in the Admin and Reminder pages.
8. Next Steps & Final WordsAnd finally what is the next steps and some important links and resources.