I´m using a Tomcat 7 with Spring MVC and Spring security in async mode.
Then I´m using DeferredResult to make async request. The mechanism works fine, but the problem is than when the deferredResult make the setResult() and return the promise, I lost all my session, and my next request give me a 403 forbidden since I dont have my authentication on my SecurityContextHolder.
I guess is because the return of the promise is done in another thread that dont has the session.
Somebody can put me in the right direction here please.
Aucun commentaire:
Enregistrer un commentaire