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

Commit 7d0ba05

Browse files
authored
Merge pull request #30 from yoelhor/patch-1
Update README.md
2 parents 06f66dd + 49a0ab4 commit 7d0ba05

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,29 @@ Your resulting code should look as follows:
171171
5. Click on the **Call Web API** and see the textual representation of the JSON object that is returned. Make sure your Node.js Web API sample is still running on port 5000.
172172
6. Sign out by clicking the **Logout** button.
173173
174+
## Optional
175+
- [Configure application to use b2clogin.com](https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-b2c-overview#configure-application-to-use-b2clogincom)
176+
- 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://docs.microsoft.com/en-us/javascript/api/msal/authenticationparameters?view=azure-node-latest), using `loginHint` attribute.
177+
```JavaScript
178+
var loginRequest = {
179+
scopes: appConfig.b2cScopes,
180+
loginHint: "someone@contoso.com"
181+
};
182+
```
183+
- You can pass any custom query string parameter in the [AuthenticationParameters object](https://docs.microsoft.com/en-us/javascript/api/msal/authenticationparameters?view=azure-node-latest), 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).
184+
```JavaScript
185+
var loginRequest = {
186+
scopes: appConfig.b2cScopes,
187+
extraQueryParameters: { campaignId: 'hawaii', ui_locales: 'es' }
188+
};
189+
```
190+
191+
174192
## More information
175-
For more information on Azure B2C, see [the Azure AD B2C documentation homepage](http://aka.ms/aadb2c).
193+
For more information on Azure B2C, see:
194+
- [Azure AD B2C documentation homepage](http://aka.ms/aadb2c)
195+
- [Microsoft authentication library for js Wiki](https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki)
196+
- [Integrate Microsoft Authentication Library (MSAL) with Azure Active Directory B2C](https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-b2c-overview)
176197
177198
## Community Help and Support
178199
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].

0 commit comments

Comments
 (0)