C
C#13mo 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.
No description
No description
No description
4 Replies
JakenVeina
JakenVeina13mo ago
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
what URL?
Batuhan
BatuhanOP13mo ago
Account/Login url you can see at the images In fact I do not have controller named account
JakenVeina
JakenVeina13mo ago
define "after i logged in"
Accord
Accord13mo ago
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.
Want results from more Discord servers?
Add your server