C#C
C#3y ago
Batuhan

❔ Role Based Authorization is not working properly.

Hello i was trying to make an application that has identity user and role to login and register user. Also in the first hand, authorize the user by role based. After role based authorization want to add a cookie based authorization to my application that's why you see cookie options in program.cs. But role base authorization not working properly, after i logged in with the user that has admin role the page is redirecting to completely different url that i have not in my project. My question is what am i doing wrong and how can i implement role based and cookie based authorization to my application.
authorization-controller.png
program-cs.png
result-404.png
Was this page helpful?