Microsoft Secure Tech Accelerator
Apr 03 2024, 07:00 AM - 11:00 AM (PDT)
Microsoft Tech Community

React and Azure B2C Integration

Copper Contributor

Hey guys, newbie here so forgive any faux pas. Just wondering if anyone out there has had resounding success integrating React with Azure B2C? At this point I've read/watched more than a few tutorials, quickstarts and general documentation. I actually have a somewhat working basic code base but it's using the 'soonish' to be deprecated 

login.microsoftonline.com/common endpoints and I'd like to migrate to 
b2clogin.com.
 
I'm trying to implement with
react-aad-msal package, which also uses the standard msal. The real issue for me here is it nailing down the proper configurations for the new api. I've seen multiple references to how the authority should be set for b2c and they all vary somewhat. I believe I've tried them all at this point and still no success, specifically I'm getting invalid tokens return which have inconsistent versions from the authority?

Is anyone else running into this specific problem or have a really good general example/repo they found? Any help or direction would be greatly appreciated!!
0 Replies