Skip to content

Releases: matt-wigg/next-15-azure-auth

v1.0.9

08 Jul 15:57
6a4af5c
Compare
Choose a tag to compare

What's Changed

  • chore(deps-dev): bump eslint from 9.28.0 to 9.30.1 by @dependabot in #63
  • chore(deps-dev): bump postcss from 8.5.3 to 8.5.6 by @dependabot in #62
  • chore(deps): bump next from 15.3.3 to 15.3.4 by @dependabot in #61
  • chore(deps): bump next-auth from 5.0.0-beta.28 to 5.0.0-beta.29 by @dependabot in #60

Full Changelog: v1.0.8...v1.0.9

v1.0.8

07 Jun 09:38
56586e1
Compare
Choose a tag to compare

What's Changed

  • chore(deps-dev): bump eslint from 9.25.1 to 9.28.0 by @dependabot in #57
  • chore(deps): bump next from 15.3.1 to 15.3.3 by @dependabot in #56
  • chore(deps-dev): bump @types/node from 22.13.17 to 22.15.29 by @dependabot in #54
  • chore(deps-dev): bump eslint-config-next from 15.2.4 to 15.3.3 by @dependabot in #53
  • chore(deps): bump next-auth from 5.0.0-beta.27 to 5.0.0-beta.28 by @dependabot in #55

Full Changelog: v1.0.7...v1.0.8

v1.0.7

01 May 22:59
bb51bf4
Compare
Choose a tag to compare

What's Changed

  • chore(deps): bump next from 15.2.4 to 15.3.1 by @dependabot in #52
  • chore(deps-dev): bump typescript from 5.8.2 to 5.8.3 by @dependabot in #49
  • chore(deps-dev): bump eslint from 9.23.0 to 9.25.1 by @dependabot in #51
  • chore(deps): bump next-auth from 5.0.0-beta.25 to 5.0.0-beta.27 by @dependabot in #50

Full Changelog: v1.0.6...v1.0.7

v1.0.6

02 Apr 16:20
40744dc
Compare
Choose a tag to compare

What's Changed

  • chore(deps-dev): bump eslint-config-next from 15.2.1 to 15.2.2 by @dependabot in #39
  • chore(deps): bump next from 15.2.1 to 15.2.2 by @dependabot in #40
  • chore(deps): bump next from 15.2.2 to 15.2.3 by @dependabot in #42
  • chore(deps-dev): bump @types/node from 22.13.10 to 22.13.17 by @dependabot in #47
  • chore(deps-dev): bump eslint-config-next from 15.2.2 to 15.2.4 by @dependabot in #46
  • chore(deps): bump next from 15.2.3 to 15.2.4 by @dependabot in #45
  • chore(deps-dev): bump eslint from 9.22.0 to 9.23.0 by @dependabot in #43

Full Changelog: v1.0.5...v1.0.6

v1.0.5

12 Mar 05:39
f69293a
Compare
Choose a tag to compare

What's Changed

  • chore(deps-dev): bump eslint from 9.21.0 to 9.22.0 by @dependabot in #33
  • chore(deps-dev): bump typescript from 5.7.3 to 5.8.2 by @dependabot in #34
  • chore(deps-dev): bump eslint-config-next from 15.1.7 to 15.2.1 by @dependabot in #35
  • chore(deps-dev): bump autoprefixer from 10.4.20 to 10.4.21 by @dependabot in #36
  • chore(deps-dev): bump @types/node from 22.13.9 to 22.13.10 by @dependabot in #37
  • chore(deps): bump @babel/runtime from 7.24.4 to 7.26.10 by @dependabot in #38

Full Changelog: v1.0.4...v1.0.5

v1.0.4

04 Mar 12:41
9907f65
Compare
Choose a tag to compare

What's Changed

  • chore(deps-dev): bump eslint from 9.20.1 to 9.21.0 by @dependabot in #26
  • chore(deps-dev): bump postcss from 8.5.2 to 8.5.3 by @dependabot in #29
  • chore(deps): bump next from 15.1.6 to 15.2.1 by @dependabot in #30
  • chore(deps-dev): bump @types/node from 22.13.4 to 22.13.9 by @dependabot in #31

Full Changelog: v1.0.3...v1.0.4

v1.0.3

22 Feb 20:04
9052071
Compare
Choose a tag to compare

What's Changed

  • chore(deps-dev): bump @types/node from 22.10.10 to 22.13.4 by @dependabot in #24
  • chore(deps-dev): bump eslint from 9.19.0 to 9.20.1 by @dependabot in #23
  • chore(deps-dev): bump postcss from 8.5.1 to 8.5.2 by @dependabot in #22
  • chore(deps-dev): bump eslint-config-next from 15.1.6 to 15.1.7 by @dependabot in #20

Full Changelog: v1.0.2...v1.0.3

v1.0.2

29 Jan 06:07
d9dc032
Compare
Choose a tag to compare

What's Changed

  • chore(deps-dev): bump postcss from 8.4.47 to 8.5.1 by @dependabot in #12
  • chore(deps-dev): bump @types/node from 22.10.2 to 22.10.7 by @dependabot in #11
  • chore(deps-dev): bump eslint from 8.57.0 to 9.18.0 by @dependabot in #10
  • chore(deps-dev): bump typescript from 5.6.3 to 5.7.3 by @dependabot in #8
  • chore(deps-dev): bump eslint from 9.18.0 to 9.19.0 by @dependabot in #17
  • chore(deps): bump next from 15.1.3 to 15.1.6 by @dependabot in #14
  • chore(deps-dev): bump @types/node from 22.10.7 to 22.10.10 by @dependabot in #16
  • chore(deps-dev): bump eslint-config-next from 15.1.3 to 15.1.6 by @dependabot in #15

New Contributors

Full Changelog: v1.0.1...v1.0.2

v1.0.1

05 Jan 05:07
Compare
Choose a tag to compare

v1.0.0

05 Jan 04:43
2d1393c
Compare
Choose a tag to compare

Next-15-Azure-Auth

Next-15-Azure-Auth is a starter template for building secure Next.js v15+ Tailwind 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.

Prerequisites

Ensure the following are installed before running the application locally:

  • Node.js (v18.17+) & npm.
  • Azure account with app registration permissions in Microsoft Entra ID.

Azure Setup for Microsoft Entra ID

  1. Register the Application

    • Navigate to the Azure portal.
    • Go to Microsoft Entra ID > App registrations > New registration.
    • Name your application (e.g., Next-15-Azure-Auth).
    • For Supported account types, choose Accounts in this organizational directory only.
    • In the Redirect URI field, set the following value:
      http://localhost:3000/api/auth/callback/microsoft-entra-id
    • Click Register to create the application.
  2. Configure the Application

    • Once registered, navigate to the app's overview page:
      • Copy the Application (client) ID and set it in your .env file as AUTH_MICROSOFT_ENTRA_ID_ID.
      • Copy the Directory (tenant) ID and set it in your .env file as AUTH_MICROSOFT_ENTRA_ID_ISSUER.
    • Next, go to Certificates & secrets:
      • Under Client secrets, click New client secret.
      • Provide a description (e.g., Next-15-Azure-Auth Secret) and choose an expiration period.
      • Once created, copy the generated secret value and set it in your .env file as AUTH_MICROSOFT_ENTRA_ID_SECRET.
  3. Set Up API Permissions

    • Navigate to API permissions > Add a permission.
    • Choose Microsoft Graph > Delegated permissions.
    • Add the following permissions:
      • User.Read - for accessing user details
      • openid - for OpenID Connect authentication
      • email - for email access
      • profile - for basic profile info
      • offline_access - for refresh tokens
    • After adding the permissions, click Grant admin consent for [Your Organization] to apply them.
  4. (Optional) Create an Enterprise Application

    • To manage access to the application:
      • Go to Azure Active Directory > Enterprise applications.
      • Find your application by name and select it.
      • Under Users and groups, assign users or groups that should have access to the application.

Local Development Setup

  1. Clone the Repository

    git clone https://github.com/matt-wigg/next-15-azure-auth.git
    cd next-15-azure-auth
  2. Install Dependencies

    npm install
  3. Set Up Environment Variables

    Create a (or edit the) .env file in the root directory:

    AUTH_SECRET=your_auth_secret
    AUTH_MICROSOFT_ENTRA_ID_ID=your_azure_client_id
    AUTH_MICROSOFT_ENTRA_ID_SECRET=your_azure_client_secret
    AUTH_MICROSOFT_ENTRA_ID_ISSUER=your_azure_tenant_id

    To generate the AUTH_SECRET, run:

    openssl rand -base64 32
  4. Start the Development Server

    npm run dev

    Your application will be available at http://localhost:3000.

Full Changelog: https://github.com/matt-wigg/next-15-azure-auth/commits/v1.0.0