Adding logout functionality

3 views
Skip to first unread message

spirit

unread,
May 30, 2011, 12:18:25 PM5/30/11
to OpenSocial Enterprise Container
Hello,
to add logout functionality could be done as follows:

1. let's add in web.xml
<filter-mapping>

<filter-name>springSecurityFilterChain</filter-name>

<url-pattern>/j_spring_security_logout</url-pattern>

</filter-mapping>
...
<servlet-mapping>

<servlet-name>dispatcher</servlet-name>

<url-pattern>/j_spring_security_logout</url-pattern>

</servlet-mapping>

2. let's add in globals.ftl
<#global logoutURL="/portal/j_spring_security_logout" >

3. let's add in header.ftl
<a href="${.globals.logoutURL}" />Logout</a>
Reply all
Reply to author
Forward
0 new messages