RE: Passing a Cookie in SolrJ

2009-08-21 Thread Fuad Efendi
And another option: implement simple proxy between SolrJ and rest of world... As I understand in your design SOLR is behind Proxy which needs Cookie. What I can't understand is: your web application uses SSO for authentication, and it uses SolrJ to retrieve results from SOLR and present it to

Re: Passing a Cookie in SolrJ

2009-08-21 Thread Shalin Shekhar Mangar
On Fri, Aug 21, 2009 at 8:31 AM, Chris Hostetter wrote: > > If he really needs to hardcode the cookie value into code, wouldn't it be > easier to extend HttpClient and modify the methods which take in an > HttpMethod object to first set the cookie on those obejcts before > delegating to super? > >

Re: Passing a Cookie in SolrJ

2009-08-20 Thread Chris Hostetter
: > but I can't see an easy way to be able to pass a cookie with the request. : > The cookie is needed to be able to get through the SSO layer but will just Unless i'm remembering wrong, and HttpClient instance will manage cookies for you, so why not just document how your users can use an HttpC

Re: Passing a Cookie in SolrJ

2009-08-19 Thread Lance Norskog
SolrJ uses the Apache Commons HTTP client. This describes the authentication system: http://hc.apache.org/httpclient-3.x/authentication.html *This has code to use authentication* https://issues.apa

Re: Passing a Cookie in SolrJ

2009-08-19 Thread Shalin Shekhar Mangar
On Tue, Aug 18, 2009 at 10:18 PM, Ramirez, Paul M (388J) < paul.m.rami...@jpl.nasa.gov> wrote: > Hi All, > > The project I am working on is using Solr and OpenSSO (Sun's single sign on > service). I need to write some sample code for our users that shows them how > to query Solr and I would just l

Re: Passing a Cookie in SolrJ

2009-08-18 Thread Chris Hostetter
: Subject: Passing a Cookie in SolrJ : In-Reply-To: <8efd35820908180833u4140682bjcfbf2816b1710...@mail.gmail.com> http://people.apache.org/~hossman/#threadhijack Thread Hijacking on Mailing Lists When starting a new discussion on a mailing list, please do not reply to an existing m

RE: Passing a Cookie in SolrJ

2009-08-18 Thread Fuad Efendi
nt: August-18-09 12:48 PM To: solr-user@lucene.apache.org Subject: Passing a Cookie in SolrJ Hi All, The project I am working on is using Solr and OpenSSO (Sun's single sign on service). I need to write some sample code for our users that shows them how to query Solr and I would just like to

Passing a Cookie in SolrJ

2009-08-18 Thread Ramirez, Paul M (388J)
Hi All, The project I am working on is using Solr and OpenSSO (Sun's single sign on service). I need to write some sample code for our users that shows them how to query Solr and I would just like to point them to the SolrJ documentation but I can't see an easy way to be able to pass a cookie w