Skip to content
This repository has been archived by the owner. It is now read-only.

Commit b3e3462

Browse files
authored
made changes for validate authority and China
1 parent 7b68322 commit b3e3462

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
services: active-directory-b2c
33
platforms: javascript
4-
author: jmprieur
4+
author: jmprieur,nvalluri
55
---
66

77
# Single-Page Application built on MSAL.js with Azure AD B2C
@@ -100,6 +100,10 @@ var tenantID = "<your-tenant-name>.onmicrosoft.com";
100100
var clientID = "<Application ID for your Node.js Web API - found on Properties page in Azure portal>";
101101
var policyName = "<Name of your sign in / sign up policy, e.g. B2C_1_SiUpIn>";
102102
```
103+
> [!NOTE]
104+
>developers using the [Azure China Environment](https://docs.microsoft.com/en-us/azure/active-directory/develop/authentication-national-cloud), MUST use <your-tenant-name>.b2clogin.cn) authority, instead of `login.chinacloudapi.cn`.
105+
>
106+
> In order to use <your-tenant-name>.b2clogin.*, you will need to `setValidateAuthority(false)`. Learn more about using [b2clogin](https://docs.microsoft.com/en-us/azure/active-directory-b2c/b2clogin).
103107
104108
Lastly, to run your Node.js Web API, run the following command from your shell or command line
105109

@@ -133,7 +137,7 @@ Now in the sample code, you can replace the single page application's demo envir
133137
2. Find the assignment for API URL `webApi` replacing the current URL by the URL where you deployed your Web API in Step 4, e.g. `webApi: 'http://localhost:5000/hello'`
134138

135139
Your resulting code should look as follows:
136-
140+
137141
```javascript
138142
<script class="pre">
139143
// The current application coordinates were pre-registered in a B2C tenant.

0 commit comments

Comments
 (0)