use waffle securityFilter with grails (single sign on against an windows active directory)
- install grails
- grails create-app
- install grails templates "grails install-templates"
- download waffle from http://dblock.github.io/waffle/
- copy waffle jar files to \lib (guava, jna, platform, slf4j-api, waffle-nja)
- edit \src\templates\war\web.xml
Now following controller code should work, showing a remote user as "domain\user":
class HelloController {
def index() {
render "user is " + request.remoteUser + " - " + request.authType
}
}
tested on windows 7, 64bit, oracle jdk 1.7, grails 2.3.7 and waffle 1.5
Kommentare