You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 17, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: Chapter1/README.md
+12-10Lines changed: 12 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@
15
15
16
16
## Overview
17
17
18
-
This sample demonstrates a how to [manage your B2C users with Microsoft Graph](https://docs.microsoft.com/azure/active-directory-b2c/microsoft-graph-get-started) via a vanilla JavaScript single-page application (SPA) using [delegated permissions](https://docs.microsoft.com/azure/active-directory/develop/delegated-and-app-perms), with the help of [Microsoft Authentication Library of JavaScript](https://github.com/AzureAD/microsoft-authentication-library-for-js) (MSAL.js) for authentication and [Microsoft Graph JavaScript Client Library](https://github.com/microsoftgraph/msgraph-sdk-javascript) for querying [Microsoft Graph](https://docs.microsoft.com/graph/overview).
18
+
This sample demonstrates a how to [manage your B2C users with Microsoft Graph](https://docs.microsoft.com/azure/active-directory-b2c/microsoft-graph-get-started) via a vanilla JavaScript single-page application (SPA) using [delegated permissions](https://docs.microsoft.com/azure/active-directory/develop/delegated-and-app-perms), with the help of [Microsoft Authentication Library of JavaScript](https://github.com/AzureAD/microsoft-authentication-library-for-js) (MSAL.js) for authentication and [Microsoft Graph JavaScript SDK](https://github.com/microsoftgraph/msgraph-sdk-javascript) for querying [Microsoft Graph](https://docs.microsoft.com/graph/overview).
19
19
20
20
## Scenario
21
21
@@ -26,11 +26,11 @@ This sample demonstrates a how to [manage your B2C users with Microsoft Graph](h
|`authProvider.js`| Main authentication logic resides here. |
33
+
|`graph.js`| Contains an implementation of MS Graph JavaScript SDK client.|
34
34
35
35
## Prerequisites
36
36
@@ -47,7 +47,7 @@ Locate the root folder of the sample in a terminal. Then:
47
47
48
48
### Registration
49
49
50
-
> :information_source: If you would like to use an existing B2C app registration that you use for signing-in users with user-flows (audience type 3), you can do so. However, you won't be able to grant delegated permissions via the **Permissions** blade on the App Registration portal. Thanks to dynamic consent, this won't be an issue, as you will already sign-in with an admin account that can consent to these permissions for herself. See "[configure the code to use your app registration](#configure-the-code-to-use-your-app-registration)" section below for other differences.
50
+
> :information_source: If you would like to use an existing B2C app registration that you use for signing-in users with user-flows (audience type 3), you can do so. However, you won't be able to grant delegated permissions via the **Permissions** blade on the App Registration portal. Still, because of [dynamic consent](https://docs.microsoft.com/azure/active-directory/develop/v2-permissions-and-consent), this won't be an issue, as you will already sign-in with an admin account that can consent to these permissions for herself. See "[configure the code to use your app registration](#configure-the-code-to-use-your-app-registration)" section below for other differences.
51
51
52
52
### Choose the Azure AD tenant where you want to create your applications
53
53
@@ -99,7 +99,7 @@ Locate the root folder of the sample in a terminal. Then:
99
99
## Explore the sample
100
100
101
101
1. Open your browser and navigate to `http://localhost:3000`.
102
-
1. Click on the **sign-in** button on the top right corner.
102
+
1. Click on the **sign-in** button on the top right corner (make sure to sign-in with an administrator account).
103
103
1. Click on the **Get Users** button retrieve the users in your tenant.
104
104
105
105

@@ -162,14 +162,16 @@ Finally, we create **MyAuthenticationProvider** class that implements `Authentic
0 commit comments