filters

Purpose

The filters plug-in sets up Grails' support for Filters.

Examples

An example filter:

class SecurityFilters {
   def filters = {
       loginCheck(controller:'*', action:'*') {
           before = {
              if(!session.user && !actionName.equals('login')) {
                  redirect(action:'login')
                  return false
               }
           }

} } }

Description

Refer to the section on Filters in the Grails user guide which details how filters work.

Configured Spring Beans:

Configured Spring Beans given a filter called SecurityFilters: