B2C Web App OpenID Connect Integration with Node.js

Azure Active Directory OIDC Web Sample

Overview: This Node.js application offers a quick and straightforward approach to implementing OpenID Connect for web applications using Express and Azure Active Directory (Azure AD). The included sample server is compatible with any platform, and all source code is open-sourced under the MIT license on GitHub, allowing you to freely clone or fork it for customization and feedback.

Quick Start Guide:

The sample is configured for easy setup with minimal adjustments needed.

  1. Register Your Web App in Azure AD B2C
  2. If you haven't yet created an Azure AD B2C tenant, start by setting up one.
  3. Next, register your web application within your tenant:
    • Go to your tenant's homepage.
    • Click on Manage B2C Settings; this redirects you to the settings page.
    • Select Applications and then click on Add.
    • Enter a name for your app, such as my_b2c_app.

This completes the basic setup needed to begin using OpenID Connect in your Node.js web app via Azure AD B2C.

zip 文件大小:13.35KB