简体   繁体   中英

How to implement azure B2C Sign_In policy in AngularJS?

I Follow this microsoft link.also sample code is there. https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-b2c-overview

and change config clientId: //This is your client/application ID authority: " https://fabrikamb2c.b2clogin.com/fabrikamb2c.onmicrosoft.com/b2c_1_susi ", //This is your tenant info validateAuthority: false

But It redirect to microsoft login page. and not to login policy page which i create. How I imaplement this in AngularJS?

There are two values you should change in the config: clinetId and authority .

This is a sample of mine for your reference:

clientId: "7c4418ea-0e40-41a7-b5af-1aecc10fde49",
authority: "https://tonyb2ctest.b2clogin.com/tonyb2ctest.onmicrosoft.com/B2C_1_tonysiu",

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM