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

Commit cac4f16

Browse files
committed
readme fixes
1 parent cb71aeb commit cac4f16

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
## 08/31/2020
44

5-
* Updated MSAL.js to 1.4.0
5+
* Updated MSAL.js to 1.4.0.
66
* Added Profile Edit user-flow.
77

88
## 08/05/2020
99

10-
* Updated to MSAL.js to 1.3.2.
10+
* Updated MSAL.js to 1.3.2.
1111
* Added issue & PR templates.
1212

1313
## 06/12/2020
1414

15-
* Updated to MSAL.js to 1.3.2.
15+
* Updated MSAL.js to 1.3.2.
1616

1717
## 05/19/2020
1818

JavaScriptSPA/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ <h5 id="label" class="card-title">Sign-in with Microsoft Azure AD B2C</h5>
5252
<script type="text/javascript" src="./ui.js"></script>
5353

5454
<!-- replace next line with authRedirect.js if you would like to use the redirect flow -->
55-
<script type="text/javascript" src="./authRedirect.js"></script>
56-
<!-- <script type="text/javascript" src="./authPopup.js"></script> -->
55+
<!-- <script type="text/javascript" src="./authRedirect.js"></script> -->
56+
<script type="text/javascript" src="./authPopup.js"></script>
5757
<script type="text/javascript" src="./api.js"></script>
5858
</body>
5959
</html>

README.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,10 @@ Listening on port 6420...
8585

8686
You can visit `http://localhost:6420` and perform the following actions:
8787

88-
1. Click the **Login** button to start the Azure AD B2C sign in or sign up workflow.
89-
2. Once signed in, you can click the **Call Web API** button to have your display name returned from the Web API call as a JSON object.
90-
3. Click **Logout** to logout from the application.
88+
1. Click the **Login** button to start the Azure AD B2C sign in, sign up or password reset user-flows.
89+
1. Once signed in, you can click on the **Call Web API** button to have your display name returned from the Web API call as a JSON object.
90+
1. Once signed in, you can click the **Edit Profile** button to edit your profile information.
91+
1. Click **Logout** to logout from the application.
9192

9293
## Using your own Azure AD B2C Tenant
9394

@@ -153,7 +154,8 @@ const tokenRequest = {
153154
const b2cPolicies = {
154155
names: {
155156
signUpSignIn: "b2c_1_susi",
156-
forgotPassword: "b2c_1_reset"
157+
forgotPassword: "b2c_1_reset",
158+
editProfile: "b2c_1_edit_profile"
157159
},
158160
authorities: {
159161
signUpSignIn: {
@@ -162,6 +164,9 @@ const b2cPolicies = {
162164
forgotPassword: {
163165
authority: "https://fabrikamb2c.b2clogin.com/fabrikamb2c.onmicrosoft.com/b2c_1_reset",
164166
},
167+
editProfile: {
168+
authority: "https://fabrikamb2c.b2clogin.com/fabrikamb2c.onmicrosoft.com/b2c_1_edit_profile"
169+
}
165170
},
166171
}
167172
```
@@ -195,8 +200,7 @@ const apiConfig = {
195200

196201
## Optional
197202

198-
- [Configure application to use b2clogin.com](https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-b2c-overview#configure-application-to-use-b2clogincom)
199-
- The MSAL.js library allows you to pass [login_hint parameter](https://docs.microsoft.com/en-us/azure/active-directory-b2c/direct-signin) in the [AuthenticationParameters object](https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL.js-1.0.0-api-release#signing-in-and-getting-tokens-with-msaljs), using `loginHint` attribute.
203+
- The MSAL.js library allows you to pass a [login_hint parameter](https://docs.microsoft.com/azure/active-directory-b2c/direct-signin) in the [AuthenticationParameters object](https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL.js-1.0.0-api-release#signing-in-and-getting-tokens-with-msaljs), using the `loginHint` attribute.
200204

201205
```JavaScript
202206
const loginRequest = {
@@ -205,7 +209,7 @@ const apiConfig = {
205209
};
206210
```
207211

208-
- You can pass any custom query string parameter in the [AuthenticationParameters object](https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL.js-1.0.0-api-release#signing-in-and-getting-tokens-with-msaljs), using `extraQueryParameters` attribute. Following sample sets the campaignId that can be used in the [Azure AD B2C UI](https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-ui-customization-custom-dynamic), and the [ui_locales](https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-reference-language-customization) set to es (Spanish).
212+
- You can pass any custom query string parameter in the [AuthenticationParameters object](https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL.js-1.0.0-api-release#signing-in-and-getting-tokens-with-msaljs), using the `extraQueryParameters` attribute. Following sample sets the `campaignId` that can be used in the [Azure AD B2C UI](https://docs.microsoft.com/azure/active-directory-b2c/active-directory-b2c-ui-customization-custom-dynamic), and the [ui_locales](https://docs.microsoft.com/azure/active-directory-b2c/active-directory-b2c-reference-language-customization) set to es (Spanish).
209213

210214
```JavaScript
211215
const loginRequest = {
@@ -220,11 +224,11 @@ For more information on Azure B2C, see:
220224
221225
- [Azure AD B2C documentation homepage](http://aka.ms/aadb2c)
222226
- [Microsoft authentication library for js Wiki](https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki)
223-
- [Integrate Microsoft Authentication Library (MSAL) with Azure Active Directory B2C](https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-b2c-overview)
227+
- [Integrate Microsoft Authentication Library (MSAL) with Azure Active Directory B2C](https://docs.microsoft.com/azure/active-directory/develop/msal-b2c-overview)
224228
225229
## Community Help and Support
226230
227-
We use Stack Overflow with the [msal](https://stackoverflow.com/questions/tagged/msal) and [azure-ad-b2c](https://stackoverflow.com/questions/tagged/azure-ad-b2c) tags to provide support. We highly recommend you ask your questions on Stack Overflow first and browse existing issues to see if someone has asked your question before. Make sure that your questions or comments are tagged with [msal.js].
231+
We use **StackOverflow** with the [msal](https://stackoverflow.com/questions/tagged/msal) and [azure-ad-b2c](https://stackoverflow.com/questions/tagged/azure-ad-b2c) tags to provide support. We highly recommend you ask your questions on **StackOverflow** first and browse existing issues to see if someone has asked your question before. Make sure that your questions or comments are tagged with [msal.js].
228232
229233
If you find and bug or have a feature request, please raise the issue on [GitHub Issues](../../issues).
230234

0 commit comments

Comments
 (0)