Hi Alberto,

I am almost 100% sure you should not be reinitializing the SpNegoFilter on each 
request.
You should initialize the instance when the XXXSpnegoHttpFilter is initialized, 
and reuse that instance for each request.
Basically, your XXXSpnegoHttpFilter has to manage the init() , destroy() 
lifecycle for the SpnegoHttpFilter.

This may help with your session expired problem, but I am not sure.

Regards from Vienna,

Richard 

> -----Ursprüngliche Nachricht-----
> Von: [email protected] [mailto:user-list-owner@magnolia-
> cms.com] Im Auftrag von Alberto Giovannone (via Magnolia Forums)
> Gesendet: Freitag, 09. Mai 2014 09:32
> An: Magnolia User List
> Betreff: [magnolia-user] Re: Problem with Windows Integrated
> Authentication and Magnolia Authentication
> 
> Hi Richard,
> the problem I found yesterday involves the cache of my browser. In fact
> when I cleaned it I can access with my Integrated Autentication to the admin
> central panel of Magnolia. But when I could show the panel I obtain in a
> couple fo seconds an error : Session Expired in a red panel with message
> "Take note of any unsaved data, and click here to continue".
> In order to answer to you questions made in the last post I can say the order
> of my filter is : spnego then login and in my spnego filter I don't insert the
> istruction "chain.doFilter(request, response)" because the spnegoHttpFilter
> contains it. This is my code :
> 
> public class XXXSpnegoHttpFilter extends AbstractMgnlFilter{
> 
>       public void doFilter(HttpServletRequest request,
> HttpServletResponse response, FilterChain chain) throws IOException,
> ServletException {
> 
>               SpnegoHttpFilter filter = new SpnegoHttpFilter();
>               filter.init(new XXXFilterConfig());
>               filter.doFilter(request, response, chain);
> 
>       }
> 
> }
> I don't know if Spnego writes something in the response but I can check.
> 
> Thank in advance for your help.
> 
> Regards from Milan
> 
> Alberto Giovannone
> 
> --
> Context is everything: http://forum.magnolia-
> cms.com/forum/thread.html?threadId=be26f4c1-1b80-42bc-8de0-
> c51be72a9127
> 
> 
> ----------------------------------------------------------------
> For list details, see http://www.magnolia-cms.com/community/mailing-
> lists.html
> Alternatively, use our forums: http://forum.magnolia-cms.com/
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------



----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to