简体   繁体   中英

adal.js or msal.js for ReactJS

I am reading through Azure Active Directory support for OAuth2 for SPA (my wish is to go for Reactjs). I have found 2 libraries for Javascrip: adal.js and msal.js. Since I am new to SPA I would need an advice from experts here. I have also read this: What is the difference between ADAL.js and MSAL.js? Therefore my question is what should i use adal.js or msal.js if i need to implement a SPA with Microsoft IdP (v1 or v2) and using ReactJS?

thanks

The selection from these two libraries is up to you. Both can be used to work with Azure Active Directory. Because MSAL.js is still under development. That is why I prefer ADAL.js That means you have to use adal-angular. You might find out good a documentation and many examples for that. The reason you have to use adal-angular is still there is no adal library for React.

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