• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts 2 tokenSession interceptor issue while redirecting from one action to another

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Need your urgent help. We are facing a sev1 issue in using thew tokenSession interceptor to implement to prevent CSRF. The flow is such that Action1 --> Action 2 . We are using ActionRedirect to move from one Action to another, however whenever we use the tokenSession interceptor , it does not hit the destination action , instead it goes into a infinite loop. Below is the Struts.xml entry

LoginAction calls CompanyAction , but it goes into a infinite loop. If we remove the tokenSession interceptor entry in CompanyAction , it works fine. But we need to have it for CSRF


Request your inputs.

Regards
Neel

// pasted from a second topic on the subject = JCE

This is in continuation to my earlier post where in specified that when there are two action - such that Action 1 redirects to Action 2 and tokenSession interceptor is used in both to prevent CSRF , then it goes into a infinite loop. Please let me know the correct way to implement tokenSession interceptor when a Action redirects to another Action and so on , such that every Action has to check for valid tokens.
 
reply
    Bookmark Topic Watch Topic
  • New Topic