NextAuth Azure AD Provider

This page summarizes the projects mentioned and recommended in the original post on /r/nextjs

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • next-auth

    Authentication for the Web.

  • Azure AD can be configured to provide roles and group membership information as part of the OpenID Connect ID tokens (encoded as JWTs) it returns during the auth flow. It doesn't look like the NextAuth Azure AD provider supports reading these claims from the ID token, but it looks like you can configure a custom provider instead that has access to the ID token. You'll probably have to play around with the options a bit, but it looks like setting idToken: true should make the claims from the ID token available in the profile function you define in the NextAuth custom provider.

  • active-directory-aspnetcore-webapp-openidconnect-v2

    An ASP.NET Core Web App which lets sign-in users (including in your org, many orgs, orgs + personal accounts, sovereign clouds) and call Web APIs (including Microsoft Graph)

  • See also the Azure AD ID token claims reference for fields you can expect to see in the decoded ID token, as well as this ASP.NET Example that talks about how to configure Azure to provide the roles/group membership info in its ID tokens.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts