Skip to content

Latest commit

 

History

History
74 lines (47 loc) · 3.48 KB

tutorial-web-app-node-sign-in-prepare-tenant.md

File metadata and controls

74 lines (47 loc) · 3.48 KB
title description author manager ms.author ms.service ms.subservice ms.topic ms.date ms.custom
Tutorial: Prepare your external tenant to sign in users in a Node.js web app
Learn how to prepare your external tenant to sign in users in your Node.js web application.
kengaderdus
mwongerapk
kengaderdus
entra-external-id
customers
tutorial
07/27/2023
developer, devx-track-js

Tutorial: Prepare your external tenant to sign in users in a Node.js web app

This tutorial series demonstrates how to build a Node.js web app and prepare it for authentication using the Microsoft Entra admin center. You'll use the Microsoft Authentication Library for JavaScript library to authenticate your app with your external tenant. Finally, you'll run the application and test the sign-in and sign-out experiences. demonstrates how to prepare your external tenant to sign in users in a Node.js web application.

In this tutorial, you'll;

[!div class="checklist"]

  • Register a web application in the Microsoft Entra admin center.
  • Create a sign in and sign out user flow in Microsoft Entra admin center.
  • Associate your web application with the user flow.

If you've already registered a web application in the Microsoft Entra admin center, and associated it with a user flow, you can skip the steps in this article and move to Prepare your Node.js web app.

Prerequisites

  • An external tenant. If you don't have one, create a trial tenant or a tenant with a subscription before you begin.
  • This Azure account must have permissions to manage applications. Any of the following Microsoft Entra roles include the required permissions:
    • Application Administrator
    • Application Developer
    • Cloud Application Administrator

Register the web app

[!INCLUDE active-directory-b2c-register-app] [!INCLUDE active-directory-b2c-app-integration-add-user-flow]

Add app client secret

[!INCLUDE active-directory-b2c-add-client-secret]

Grant admin consent

[!INCLUDE active-directory-b2c-grant-delegated-permissions]

Create a user flow

[!INCLUDE active-directory-b2c-app-integration-add-user-flow]

Associate the web application with the user flow

[!INCLUDE active-directory-b2c-app-integration-add-user-flow]

Collect your app registration details

Make sure you record the following details for use is later steps:

  • The Application (client) ID of the client web app that you registered.
  • The Directory (tenant) subdomain where you registered your web app. If you don't have your tenant name, learn how to read your tenant details.
  • The Client secret value for the web app you created.

Next step

[!div class="nextstepaction"] Part 2: Prepare a Node.js web application for authentication in an external tenant