❔ 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.
4 Replies
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 projectwhat URL?
Account/Login url you can see at the images
In fact I do not have controller named account
define "after i logged in"
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.