hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wilson wong <wsww...@yahoo.com>
Subject Re: httpclient and siteminder
Date Mon, 02 Oct 2006 17:13:17 GMT

Hi Roland,

    Change to "new AuthScope("www.foo.com", 443)"  as
suggested by you it worked! Thanks so much

I have second question :)

We have implemented SSO with SiteMinder
User  authenticated and logon to the main site,  user
can click on the other links (via href) from the main
site which is also protected by siteminder but without
having to authenticated again.
We would like to use httpclient to connect to the
other links from the main site, how do I tell
httpclient to use the existing session information
from the main site to avoid SiteMinder authentication
again.  Thanks for your time

Regards
Wilson 





--- Roland Weber <http-async@dubioso.net> wrote:

> Hello Wilson,
> 
> >           hc.getState().setCredentials(new
> > AuthScope("https://www.foo.com/apps", 443),
> 
> That authentication scope does not make any sense.
> Please read the JavaDocs:
>
http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/auth/AuthScope.html
> 
> What you are passing as "host" is not a host at all.
> Either register the default credentials with scope
> AuthScope.ANY or use the constructor correctly:
> new AuthScope("www.foo.com", 443)
> 
> hope that helps,
>   Roland
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> httpclient-user-help@jakarta.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message