-1

I want to granting access to the system in SPA that will be written in asp.net core and reactjs, for example limited users can't access to some page or can't see some menus...

I want to know how should i implement authorization? in server side or client side with react?

I think if it's in server side that is safe. If i implement role base authorization with asp.net core(identity) can i use it in react side or not?

Can anybody show me the right way?

Noob
  • 23
  • 1
  • 7

1 Answers1

0

You could have a look at the React project template, to see how this can be done using IdentityServer4. See e.g. this question for information about how to use roles in such an approach.

user7217806
  • 2,014
  • 2
  • 10
  • 12