JamesRandall / react-azure-adb2c

Looking for a maintainer - if interested please get in touch in issue #13
MIT License
45 stars 58 forks source link

Needs validateAuthority flag to work with b2clogin.com redirects #16

Open anders-lundgren opened 5 years ago

anders-lundgren commented 5 years ago

Great package, thanks for putting this together! I even thought this was the official MS package since it was featured on TechNet: https://social.technet.microsoft.com/wiki/contents/articles/52573.azure-ad-b2c-secure-your-reactjs-frontend.aspx

One small issue, the recommended login redirect to <your-domain>.b2clogin.com requires the flag validateAuthority to be set to false when calling Msal.UserAgentApplication(): https://docs.microsoft.com/bs-latn-ba/azure/active-directory-b2c/b2clogin

I have added this change to the initialize function on our fork and verified that it works: https://github.com/information-experience-sweden-ab/react-azure-adb2c/commit/fdc6855b3f3c84a9704f596d9a907814c9928e09