Skip to content

Commit 4ead4f2

Browse files
committed
formatting
1 parent dd34640 commit 4ead4f2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

articles/active-directory-b2c/tutorial-single-page-app-webapi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,17 @@ To change the settings in the SPA:
105105
1. In the [active-directory-b2c-javascript-msal-singlepageapp][github-js-spa] project you downloaded or cloned in the previous tutorial, open the *apiConfig.js* file inside the *JavaScriptSPA* folder.
106106
1. Configure the sample with the URI for the *demo.read* scope you created earlier and the URL of the web API.
107107
1. In the `apiConfig` definition, replace the `b2cScopes` value with the full URI for the *demo.read* scope (the **Scope** value you recorded earlier).
108-
1. Change the domain in the `webApi` value to the redirect URI you added when you registered the web API application in an earlier step. Because the API is accessible at the `/hello` endpoint, leave */hello* in the URI.
108+
1. Change the domain in the `webApi` value to the redirect URI you added when you registered the web API application in an earlier step.
109+
110+
Because the API is accessible at the `/hello` endpoint, leave */hello* in the URI.
109111
110112
The `apiConfig` definition should look similar to the following code block, but with your B2C tenant's name in the place of `<your-tenant-name>`:
111113

112114
```javascript
113115
// The current application coordinates were pre-registered in a B2C tenant.
114116
const apiConfig = {
115117
b2cScopes: ["https://<your-tenant-name>.onmicrosoft.com/api/demo.read"],
116-
webApi: "http://localhost:5000/hello"
118+
webApi: "http://localhost:5000/hello" // '/hello' should remain in the URI
117119
};
118120
```
119121

0 commit comments

Comments
 (0)