Announcement Announcement Module
Collapse
No announcement yet.
Excluding security for a single .gsp page Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Excluding security for a single .gsp page

    How can I exclude spring security for a single .gsp page
    my Config.groovy entries are as follows. The one marked in red should get excluded from authentication.

    grails.plugins.springsecurity.rejectIfNoRule = true
    grails.plugins.springsecurity.securityConfigType = grails.plugins.springsecurity.SecurityConfigType.A nnotation
    grails.plugins.springsecurity.successHandler.alway sUseDefault=true

    grails.plugins.springsecurity.controllerAnnotation s.staticRules = [
    '/js/**': ['IS_AUTHENTICATED_ANONYMOUSLY'],
    '/css/**': ['IS_AUTHENTICATED_ANONYMOUSLY'],
    '/images/**': ['IS_AUTHENTICATED_ANONYMOUSLY'],
    '/type/**': ['IS_AUTHENTICATED_ANONYMOUSLY'],
    '/json/**': ['IS_AUTHENTICATED_ANONYMOUSLY'],
    '/test/**': ['IS_AUTHENTICATED_ANONYMOUSLY'],
    '/login/auth': ['IS_AUTHENTICATED_ANONYMOUSLY'],
    '/login/authfail': ['IS_AUTHENTICATED_ANONYMOUSLY'],
    '/login/authCARE': [''],
    '/**': ['IS_AUTHENTICATED_FULLY']
    ]
Working...
X