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

Commit 9c78b28

Browse files
committed
final touches
1 parent 9426e23 commit 9c78b28

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

JavaScriptSPA/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h5 id="label" class="card-title">Sign-in with Microsoft Azure AD B2C</h5>
4242
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
4343

4444
<!-- importing app scripts -->
45-
<script type="text/javascript" src="./poliConfig.js"></script>
45+
<script type="text/javascript" src="./policies.js"></script>
4646
<script type="text/javascript" src="./authConfig.js"></script>
4747
<script type="text/javascript" src="./apiConfig.js"></script>
4848
<script type="text/javascript" src="./authPopup.js"></script>

JavaScriptSPA/poliConfig.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

JavaScriptSPA/policies.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
// add here different b2c policies you have
3+
const b2cPolicies = {
4+
signUpSignIn: "b2c_1_susi", // Enter here the policy name you created on the portal
5+
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
page_type: sample
3-
description: "This sample demonstrates how to use the Microsoft Authentication Library for JavaScript (msal.js) to get an access token and call an API secured by Azure AD B2C."
3+
description: "This sample demonstrates how to use the Microsoft Authentication Library for JavaScript to get an access token and call an API secured by Azure AD B2C."
44
languages:
55
- javascript
66
products:
@@ -139,7 +139,7 @@ Provide the following values for the Single Page Application registration:
139139

140140
Now in the sample code, you can replace the single-page application's demo environment configuration with your own tenant.
141141

142-
1. Open the `poliConfig.js` file.
142+
1. Open the `policies.js` file.
143143
2. In the `b2cPolicies` object, replace the current signUp-signIn policy value with the name of the policy you created in Step 2 (if you have additional policies, you can add them here as well).
144144
3. Open the `authConfig.js` file.
145145
4. Find the assignment for `clientID` and replace the value with the Application ID for the single page application you registered in Step 4, for example the Application ID found in `My Test SPA` application in the Azure portal.

0 commit comments

Comments
 (0)