Saturday, 15 February 2014

asp.net - MVC5, error handling on missing rights -



asp.net - MVC5, error handling on missing rights -

i have mvc5 site utilize roles this:

[authorize(roles = applicationtypes.readonlyrole)] public partial class homecontroller : basecontroller

-and on missing rights, user see exception + callstack if custom-error-mode on , other standard page if off.

how grab access denied exception , redirect page ?? i'm aware create custom attribute , redirect there, should standard functionality , shouldn't necessary come custom made.

the site utilize windows authentication, user authenticated, fail later on if roles missing.

thank you.

asp.net asp.net-mvc asp.net-mvc-5

No comments:

Post a Comment