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

Commit 9772f47

Browse files
authored
Update README.md
Adding b2clogin.com and advance topics
1 parent 6be7313 commit 9772f47

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
@@ -166,8 +166,29 @@ Your resulting code should look as follows:
166166
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.
167167
6. Sign out by clicking the **Logout** button.
168168
169+
## Advance topics
170+
- [Configure application to use b2clogin.com](https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-b2c-overview#configure-application-to-use-b2clogincom)
171+
- 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.
172+
```JavaScript
173+
var loginRequest = {
174+
scopes: appConfig.b2cScopes,
175+
loginHint: "someone@contoso.com"
176+
};
177+
```
178+
- 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).
179+
```JavaScript
180+
var loginRequest = {
181+
scopes: appConfig.b2cScopes,
182+
extraQueryParameters: { campaignId: 'hawaii', ui_locales: 'es' }
183+
};
184+
```
185+
186+
169187
## More information
170-
For more information on Azure B2C, see [the Azure AD B2C documentation homepage](http://aka.ms/aadb2c).
188+
For more information on Azure B2C, see:
189+
- [Azure AD B2C documentation homepage](http://aka.ms/aadb2c)
190+
- [Microsoft authentication library for js Wiki](https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki)
191+
- [Integrate Microsoft Authentication Library (MSAL) with Azure Active Directory B2C](https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-b2c-overview)
171192
172193
## Community Help and Support
173194
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)