Sri Ram

Sri Ram

  • 1.5k
  • 170
  • 96.5k

Authentication and Authorization in React app

Jul 25 2022 10:11 PM

We have existing .NET MVC & .NET core web apps from which user will try to navigate to a new app that's being developed using React JS & .NET Core Web API.

When we redirect between apps, we usually pass some user claims like session id/username from the parent app.

So, when an user tries to navigate from an existing MVC app using a button/link click, how to validate the user and redirect to REACT APP HOME PAGE in React App -> startup.cs ?

If user has view permissions to the requested page, system should redirect to the respective page else to display the access denied page.

This React JS app doesn't have any roles based authorization and its based on users permissions settings for each in backend (SQL SERVER).

Please provide your valuable suggestions.