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
constclientID="<Application ID for your Node.js Web API - found on Properties page in Azure portal e.g. 93733604-cc77-4a3c-a604-87084dd55348>";
64
64
constb2cDomainHost="<Domain of your B2C host eg. fabrikamb2c.b2clogin.com>";
65
-
consttenantIdGuid="<Application ID for your Node.js Web API - found on Properties page in Azure portal e.g. 775527ff-9a37-4307-8b3d-cc311f58d925>";
65
+
consttenantId="<your-tenant-ID>.onmicrosoft.com"; // Alternatively, you can use your Directory (tenant) ID (GUID)
66
66
constpolicyName="<Name of your sign in / sign up policy, e.g. B2C_1_signupsignin1>";
67
67
```
68
68
@@ -76,7 +76,7 @@ The following steps demonstrate how a **single-page application** can use Azure
76
76
77
77
### Step 1: Register your application
78
78
79
-
To implement authentication, you first need to register your application. See [Register your application](https://docs.microsoft.com/azure/active-directory-b2c/tutorial-register-applications?tabs=applications) for detailed steps.
79
+
To implement authentication, you first need to register your application. See [Register your application](https://docs.microsoft.com/azure/active-directory-b2c/tutorial-register-applications) for detailed steps.
80
80
81
81
### Step 2: Download the sample application
82
82
@@ -127,11 +127,6 @@ There are two points of interest in configuring your application:
127
127
constloginRequest= {
128
128
scopes: ["openid", "profile"],
129
129
};
130
-
131
-
// Add here scopes for access token to be used at the API endpoints.
132
-
consttokenRequest= {
133
-
scopes: ["https://fabrikamb2c.onmicrosoft.com/helloapi/demo.read"] //API scopes you exposed during api registration
134
-
};
135
130
```
136
131
137
132
For more information, check out this [JavaScript B2C single-page application sample](https://github.com/Azure-Samples/active-directory-b2c-javascript-msal-singlepageapp).
@@ -142,5 +137,5 @@ For more information, check out this [JavaScript B2C single-page application sam
0 commit comments