Posted By

lucastex on 03/18/09


groovy grails service acegi

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Using the Acegi AuthenticateService

 / Published in: Groovy

  1. def authenticateService
  3. def debugPrincipal = {
  4. def userPrincipal = authenticateService.principal()
  5. println userPrincipal.getUsername() //shows the current logged user username
  6. println userPrincipal.getAuthorities() //shows the current logged user authorities
  7. redirect action: list, params: params
  8. }

Report this snippet  

You need to login to post a comment.