Hi Scott!
It's true, I can't do that.
:(
I tried to remove the cookie, but the SingleSignOutFilter does not continue
the filterChain:
...
Cookie ltpaCookie = new Cookie( cookieName, "" );
ltpaCookie.setDomain( cookieDomain );
ltpaCookie.setPath( cookiePath );
ltpaCookie.setComment( "EXPIRING COOKIE at " +
System.currentTimeMillis() );
( (HttpServletResponse) servletResponse ).setContentType(
"text/html" );
( (HttpServletResponse) servletResponse ).addCookie( ltpaCookie );
*// filterChain.doFilter( servletRequest, servletResponse );
there isn't filter chain to continue.*
...
So, without a response to the browser there no way to remove the cookie...
On Thursday, January 24, 2013 7:18:10 PM UTC-2, Scott Battaglia wrote:
>
> You're not going to be able to. The callback is behind the scenes and
> doesn't go through the browser. You won't have access to any cookies.
>
> Cheers,
> Scott
>
>
> On Thu, Jan 24, 2013 at 1:04 PM, Gil Victor Teixeira Pinto <
> [email protected] <javascript:>> wrote:
>
>> Hello All!
>>
>> I'd like to implement some code (remove a cookie from a client app) after
>> a SSOut request.
>> My SSOut works perfectly, calling the filter: *
>> org.jasig.cas.client.session.SingleSignOutFilter*.
>> Where is the best place to implement this?
>>
>> I would not to change the code in *SingleSignOutFilter.doFilter(...)*,
>> but at a first look it is my only way.
>> After identifying a "*logoutRequest*" it does the work and stop the
>> chain filter.
>> That is correctly for a SSOut, but if I have to clean something else at
>> my app?
>> Ideas?
>>
>> Thanks in advance and congratulations for the active group!
>> Gil Victor
>>
>>
>> SSOut at web.xml:
>> ...
>> <!-- SSOut -->
>> <listener>
>>
>> <listener-class>org.jasig.cas.client.session.SingleSignOutHttpSessionListener</listener-class>
>> </listener>
>>
>> <!-- SSOut
>> https://wiki.jasig.org/display/CASC/Configuring+Single+Sign+Out -->
>> <filter>
>> <filter-name>CAS Single Sign Out Filter</filter-name>
>>
>> <filter-class>org.jasig.cas.client.session.SingleSignOutFilter</filter-class>
>> <init-param>
>> <param-name>artifactParameterName</param-name>
>> <param-value>SAMLart</param-value>
>> </init-param>
>> </filter>
>>
>> <filter-mapping>
>> <filter-name>CAS Single Sign Out Filter</filter-name>
>> <url-pattern>/*</url-pattern>
>> </filter-mapping>
>> ...
>>
>> --
>> You are currently subscribed to [email protected] <javascript:> as:
>> [email protected] <javascript:>
>>
>>
>> To unsubscribe, change settings or access archives, see
>> http://www.ja-sig.org/wiki/display/JSG/cas-user
>>
>>
> --
> You are currently subscribed to [email protected] <javascript:> as:
> [email protected] <javascript:>
> To unsubscribe, change settings or access archives, see
> http://www.ja-sig.org/wiki/display/JSG/cas-user
>
>
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user