I'm using Asp.net Identity.
Currently have 7 types or roles in the system. A user can only have 1 role. How can I set the redirect URL based on the user role if that user lands on a protected page that his role doesn't have privilege to?
For example a Student
user of role Student
goes to Teacher.aspx
. He is not authorized so the default is that he is redirected to the login page. But I would much rather redirect him somewhere else depending on his role because he is already logged in.