use waffle securityFilter with grails (single sign on against an windows active directory)


  1. install grails
  2. grails create-app
  3. install grails templates "grails install-templates"
  4. download waffle from http://dblock.github.io/waffle/
  5. copy waffle jar files to \lib (guava, jna, platform, slf4j-api, waffle-nja)
  6. 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

Beliebte Posts aus diesem Blog

using the birt runtime with spring boot and gradle to generate PDF from a Report Design File

Powershell snippet to send messages to telegram