I\'m only a newcomer to ASP.NET MVC and am not sure how to achieve a certain task the \"right way\". Essentially, I store the logged in userId in HttpContext.User.Identity and have written an Enhance
Is there a way to display an action-specific authorisation message for when an [Authorize] or [Authorize(Roles=\"Administrator\")] attribute redirects the user to the sign-in page?
I have a custom SiteMapProvider (populated from database) and a custom AuthorizeAttribute (validates current users roles + requested page against Role_Page database) for controller classes.
I have been looking around but i don\'t see any spec for this, maybe i sear开发者_如何学Pythonch a wrong keyword. But i\'m here so i should ask something.. :)