How to programmatically logout in acegi plugin in Grails?

Posted by firnnauriel on Stack Overflow See other posts from Stack Overflow or by firnnauriel
Published on 2010-05-06T09:22:21Z Indexed on 2010/05/06 15:38 UTC
Read the original article Hit count: 251

Filed under:
|

Is there a similar logic for logout using this login code:

// login account
def autht = new AuthToken(username, password)
def authtoken = daoAuthenticationProvider.authenticate(autht)
SecurityContextHolder.context.authentication = authtoken

I checked LogoutController and this is the only logic for logout:

redirect(uri: '/j_spring_security_logout')

Any idea? Thanks

© Stack Overflow or respective owner

Related posts about grails

Related posts about acegi