Debasis Ghosh
Debasis Ghosh

Reputation: 263

Best way to authorize User against Azure AD Group in SPA (React JS)

We want to authorize User against Azure AD group in SPA (React JS); i.e. User allows to access API from SPA if he/she belongs to a Particular group (e.g. testgroup). Found sample code in Msal.JS.

I'm following

Please suggest me whether I am going in Right direction or any other options are available.

Thanks for your suggestion.

Regards,

Deb

Upvotes: 1

Views: 1753

Answers (1)

Ahsan Raza
Ahsan Raza

Reputation: 141

Rather than using msal.js, I used react-aad-msal. It is msal wrapper library and it went much smoother.

I would try this
https://ahsanshares.wordpress.com/2019/10/19/react-app-consuming-microsoft-graph/

Upvotes: 1

Related Questions