Posted By

lucastex on 03/18/09


Tagged

groovy grails service acegi


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

sfhynx


Using the Acegi AuthenticateService


 / Published in: Groovy
 

  1. def authenticateService
  2.  
  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.