Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Adding Authorization Http Header to a Request from Client

843841Nov 21 2006
I have 2 web applications, running on Jboss and Oracle As,
in the same network. The application on Oracle As uses basic
authentication. The application running on Jboss has no authentication, basic, form or digest, but the request
is to implement an authorization against the Oracle As, so the oracle users will have also access into the jboss app.,
a sort of sigle sign on between the two servers.

I find out the solution to authenticate through the java code using
Authenticator.setDefault, ( this is my post http://forum.java.sun.com/thread.jspa?threadID=787326&tstart=0 )
but when I try to click a link to a secured page in Oracle As I still receive the basic popup asking me for user and password.

Therefore I need to add authentication information to the http request
header sent by the client running on jboss when open a secured page
from the second app, running on Oracle As.

The application on Oracle Aps uses basic authentication so I just need to add the
"Authorization: Basic <base64 string>" header. I checked with http://web-sniffer.net/ to see exactly how this header should look like.

Could anybody offer an example to demonstrate how to add the Authorization header? Thanks.

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 19 2006
Added on Nov 21 2006
0 comments
254 views