...
To fully understand a gateway request see http://www.ja-sigjasig.org/products/cas/client-integration/gateway/index.html
Configuration of Filters
Assuming you have a standard web site layout, with protected and unprotected areas, you will need to two authentication filters and one validation filter.
...