Skip to main content

Attributes

Go To Naming Conventions

The ASP.NET MVC framework supports four different types of filters executed in the following order:

  1. Authorisation filters – Implements the IAuthorizationFilter attribute.
  2. Action filters – Implements the IActionFilter attribute.
  3. Result filters – Implements the IResultFilter attribute.
  4. Exception filters – Implements the IExceptionFilter attribute.

The common authorisation filters that is used in Signify are

image-1601322053620.png

  • 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

image-1602127617546.png

Applying a filter on the controller as a whole

image-1602127647291.png