{"repo":"matt-wigg/next-14-azure-auth","free":true,"listed":false,"github":"https://github.com/matt-wigg/next-14-azure-auth","clone":"git clone https://github.com/matt-wigg/next-14-azure-auth.git","description":"A Next.js v14+ template with Tailwind v3+, featuring Microsoft Entra ID authentication via Next-Auth v5+ and a Microsoft Graph Client integration.","language":"TypeScript","stars":29,"topics":["microsoft-entra-id","next-auth-v5","microsoft-graph-client","nextjs14-typescript","tailwindcss-v3","template"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Next-14-Azure-Auth Next-14-Azure-Auth is a starter template for building secure Next.js v14+ Tailwind CSS apps with Microsoft Entra ID authentication. It uses the Next-Auth.js Library for authentication and the Microsoft Graph Client Library for fetching user data. Table of Contents - Prerequisites - Azure Setup for Microsoft Entra ID - Local Development Setup - Usage - Key Directories and Files - Deployment Prerequisites Before you begin, ensure you have the following installed and set up: - Node.js (v18.17+) & npm. - Git for version control. - An Azure account with app registration permissions in Microsoft Entra ID. Azure Setup for Microsoft Entra ID Follow these steps to configure Microsoft Entra ID for authentication: 1. Register the Application 1. Go to the Azure portal. 2. Navigate to Microsoft Entra ID App registrations New registration . 3. Enter a name for your application (e.g., Next-14-Azure-Auth ). 4. Under Supported account types , select Accounts in this organizational directory only . 5. In the Redirect URI field, enter: http://localhost:3000/api/auth/callback/microsoft-entra-id 6. Click Register to create the application. 2. Configure the Application 1. Go to the app's Overview page: - Copy the Application (client) ID and add it to your .env file as AUTH MICROSOFT ENTRA ID ID . - Copy the Directory (tenant) ID and add it to your .env file as AUTH MICROSOFT ENTRA ID ISSUER . 2. Navigate to Certificates & secrets : - Under Client secrets , click New client secre","default_branch":null,"files":null,"tree":[],"storefront":"/r/matt-wigg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/matt-wigg/next-14-azure-auth/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}