(Quick Reference)

2 Configuration - Reference Documentation

Authors: Luís Duarte

Version: 0.0.3

2 Configuration

By default the no Middleware ServletFilter will not be created unless at least 1 Middleware is defined/configured.

To define the Middleware Pipeline, all you need to do is use the application.yml configuration and define the classes and the order

Example:

grails:
    middleware:
        order:
            - com.myapp.AuthenticationMiddleware
            - com.myapp.AuthorizationMiddleware
            - com.myapp.subpackage.SomeRandomMiddleware