This project is read-only.

Redirect to error page instead of login page on unauthorized access

Aug 1, 2016 at 1:38 PM
Hi.

I am kinda new to asp.net as a whole, but my project needs authorization control and this project fits my needs very well. The only exception is that I must redirect unauthorized users to some error page (my error page). Pretty much as Dino Esposito suggests on the link below (Not Authorized or Just Not Logged In?). Is it possible using MVC Authorization? How?

https://www.simple-talk.com/dotnet/asp.net/thoughts-on-asp.net-mvc-authorization-and-security-/