Final SecurityConfig.groovy


/ Published in: Groovy
Save to your folder(s)



Copy this code and paste it in your HTML
  1. security {
  2.  
  3. // see DefaultSecurityConfig.groovy for all settable/overridable properties
  4.  
  5. active = true
  6.  
  7. loginUserDomainClass = "User"
  8. authorityDomainClass = "Role"
  9. requestMapClass = "RequestMap"
  10.  
  11. useRequestMapDomainClass = false
  12.  
  13. requestMapString = """
  14. CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
  15. PATTERN_TYPE_APACHE_ANT
  16. /user/create=ROLE_ADMIN
  17. /user/edit=ROLE_ADMIN
  18. /user/save=ROLE_ADMIN
  19. /user/list=ROLE_ADMIN, ROLE_USER
  20. """
  21. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.