• 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

POSTing to authenticated URLs

 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it possible for a POSTed form's data to remain intact across a form-login authentication scheme? The servlet spec says for login-form authentication, it will "save the URL path" that triggers the authentication, and use it after the user successfully is authenticated.

I'm guessing that ambiguity will lead to server mismatches--some being able to reconstruct the full request after authentication, while others only reconstruct the request but miss the message body.

On a related note, after the user gets authenticated, is there any difference between the original request and the one that you see after authentication? Will, for example, the referring URLs be identical, or will the final one be changed to reflect some bizarre authentication URL the container comes up with?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Seems more appropriate for the Servlets forum.
[ October 28, 2004: Message edited by: Bear Bibeault ]
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First of all, POST contains 2 types of data to worry about: the URL itself, plus the data stream that was POSTed. That's different from GET, where the URL is all you get (discounting side stuff like cookies).

Your URL may get rewritten when you authenticate to add session ID info, but the core URL should not. If you use the URL data extraction services that should make for minimal effect. If you're doing the parsing yourself, YMMV.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic