Attributes
Go To Naming Conventions
The ASP.NET MVC framework supports four different types of filters executed in the following order:
- Authorisation filters – Implements the IAuthorizationFilter attribute.
- Action filters – Implements the IActionFilter attribute.
- Result filters – Implements the IResultFilter attribute.
- Exception filters – Implements the IExceptionFilter attribute.
The common authorisation filters that is used in Signify are
- BypassModuleAuthorisation: The MVC authorization filter that enables one to by-pass module authentication.
- BypassSessionAuthorisation: The MVC authorization filter that enables one to by-pass session authentication.
- ModuleAuthorisation: Extended authorisation that determines if the user consists of a session.
- SecurityUserAuthorisation: Authorize the user against roles.
- Session Authorisation: Extended authorisation that determines if the user consists of a session, implemented in the base controller
- SystemAccessAuthorisation: Authorize the user on access to the module and the active status of the module.
Example of use
Applying a filter on a single method in the controller
Applying a filter on the controller as a whole