Return to Snippet

Revision: 12535
at March 18, 2009 12:34 by lucastex


Initial Code
def authenticateService

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

Initial URL

                                

Initial Description

                                

Initial Title
Using the Acegi AuthenticateService

Initial Tags
groovy, service

Initial Language
Groovy