tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tokajac <imre_to...@hotmail.com>
Subject Re: Basic authentication without a secure connection
Date Sun, 03 May 2009 12:11:42 GMT

>Now why would you want to do that ?
I want to connect applications: one is running on Tomcat (Java/Struts) with
another (php).

I have an application running on Tomcat that has a link to other application
which is on another server. Application on another server is protected with:
http://en.wikipedia.org/wiki/Basic_access_authentication
http://en.wikipedia.org/wiki/Basic_access_authentication 

I want to pass credentials after link is clicked, so I don't need to fill
the username and password informations. I see that I might need to add row: 
"Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=="
in the request header.


Is this possible to do? How?

 
Regards










awarnier wrote:
> 
> Tokajac wrote:
>> Hello!
>> 
>> 
>> I'm developing a Tomcat, Struts application.
>> 
>> I want to send credentials to the Authentication Dialog that's shown by
>> application which is running on another server.
>> With this idea, I'd connect 2 application: the Tomcat application should
>> have a redirection link to the other application.
>> 
>> If I can modify the request header, I will add row "Authorization: Basic
>> QWxhZGRpbjpvcGVuIHNlc2FtZQ=="
>> http://en.wikipedia.org/wiki/Basic_access_authentication
>> http://en.wikipedia.org/wiki/Basic_access_authentication 
>> http://www.ietf.org/rfc/rfc2616.txt http://www.ietf.org/rfc/rfc2616.txt 
>> 
>> 
>> How can I implement this?
>> 
> Now let us get this straight.  You would like your Tomcat server to 
> provide access to its own clients, without authentication, to a back-end 
> service which requires authentication.  Now why would you want to do that
> ?
> And if that is not what you want to do, what do you want to do ?
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Basic-authentication-without-a-secure-connection-tp23347310p23355186.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message