Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mmacy authored Dec 10, 2020
1 parent 70bffa3 commit 0967ee9
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,29 @@ urlFragment: "quickstart-v2-nodejs-webapp-msal"

# Add user authentication to a Node web app with MSAL

## How is this scenario used?
This sample Node.js web application uses the Microsoft Authentication Library for Node.js (MSAL Node.js) to # users with the OAuth 2.0 authorization code flow.

The OAuth 2.0 auth code flow is most commonly used for a web app that signs in users. General information about this scenario is available in [Scenario: Web app that signs in users](https://docs.microsoft.com/azure/active-directory/develop/scenario-web-app-sign-user-overview?tabs=aspnetcore).
You can find additional information about supporting user sign-in in your web apps by using the Microsoft identity platform on docs.microsoft.com: [Scenario: Web app that signs in users](https://docs.microsoft.com/azure/active-directory/develop/scenario-web-app-sign-user-overview?tabs=aspnetcore).

## Prerequisites

- [Node.js](https://nodejs.org/en/)

## Register the application

Start by [registering an app](https://docs.microsoft.com/azure/active-directory/develop/quickstart-register-app) in your Azure Active Directory (Azure AD) tenant.

Use the following settings for your app registration:

- Name: `MSAL Node Sample` (suggested)
- Supported account types: **Accounts in any organizational directory and personal Microsoft accounts**
- Platform type: **Web**
- Redirect URI: `http://localhost:3000/redirect`
- Client secret: `*********` (record this value after creation - it's shown only once)

## Clone the repository

First, get the files included in this code sample.
Next, get the files included in this code sample.

SSH:

Expand All @@ -33,16 +49,6 @@ $ git clone https://github.com/AzureAD/ms-identity-node.git

You can also download the repository by selecting [Download ZIP]() from the repository's dropdown menu. You can decompress it locally and explore the code.

## Prerequisites

- [App registered](https://docs.microsoft.com/azure/active-directory/develop/quickstart-register-app) in your Azure Active Directory tenant
- Name: `MSAL Node Sample` (suggested)
- Supported account types: **Accounts in any organizational directory and personal Microsoft accounts**
- Platform type: **Web**
- Redirect URI: `http://localhost:3000/redirect`
- Client secret: `*********` (record this value after creation - it's shown only once)
- [Node.js](https://nodejs.org/en/)

## Install the package

To install the MSAL Node package:
Expand Down

0 comments on commit 0967ee9

Please # to comment.