aspose file tools*
The moose likes JSP and the fly likes Skip HttpAuthentication by setting http authentication headers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Skip HttpAuthentication by setting http authentication headers" Watch "Skip HttpAuthentication by setting http authentication headers" New topic
Author

Skip HttpAuthentication by setting http authentication headers

Khharnai Sreenatha
Greenhorn

Joined: Oct 16, 2006
Posts: 3
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
Marshal

Joined: Mar 22, 2005
Posts: 41837
    
  63
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 ]

Ping & DNS - my free Android networking tools app
Khharnai Sreenatha
Greenhorn

Joined: Oct 16, 2006
Posts: 3
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Skip HttpAuthentication by setting http authentication headers