Monday, January 11, 2010

Logout from Acegi

To logout from Acegi, simply GET the following url: my-context-root/logout

This link gets it done:
<g:link action="logout" controller=".">Logout</g:link>


I added some inline style to move it to the right side of the screen:
<div style="text-align: right; padding: 1px 20px 0px 0px;">
<g:link action="logout" controller=".">Logout</g:link>
</div>


Placing the snippet into .\views\layouts\main.gsp will make the Logout link appear on every page.

-Ben Hidalgo

No comments:

Post a Comment