File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Skip HttpAuthentication by setting http authentication headers

 
Khharnai Sreenatha
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

we have a requirement to bypass HttpAuthentication on a remote server for a protected resource.

I believe this can be done by setting http authentication headers..
is this possible in jsp using some predefined (or) custom tab libraries??

any ideas/suggestions are greatly appreciated
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The authentication headers are sent from the client to the server by the browser; they can't be set by JSPs or servlets. A Java client could set the header as is described here.

What is the purpose of wanting to do this - are you trying to implement a form of single sign-on?
[ November 30, 2006: Message edited by: Ulf Dittmer ]
 
Khharnai Sreenatha
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes we are basically implementing kind of SSO..
Applets are out of question for us...

the reason i was asking jsp was that i can deploy the jsp in my server and make it act as a client connecting to remote server url which can bypass the Authentication

We even tried AJAX way of solving things but since cross domain is restricted it was of NO use.

any ideas any other way of bypassing HTTP Authentication on a remote server URL
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic