Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Has anyone successfully implemented Azure AD auth using Server Side Rendering Angular (Angular Universal)?

Currently We have an app that is using Angular Universal for Rendering. We have MSAL auth installed but we get random infinite loops with auth, especially new users.

We have tried catching these events and handling them but it does not seem to work. Looked at some documentation that says, MSAL is still not supported with Node and Server Side Apps.

I cannot use AUTH0. Does anyone have any ideas on how to accomplish the auth against azure ad in this type of app?

like image 374
thefenry Avatar asked Oct 29 '25 05:10

thefenry


1 Answers

MSAL.js at the moment works only with single page applications. Support for Node applications is on the roadmap.

Still, there are a number of 3rd party libraries that you can use for this. I would suggest using passport-azure-ad. You can see a sample application here.

like image 57
derisen Avatar answered Oct 31 '25 13:10

derisen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!