[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12751183#action_12751183
 ] 

Oleg Kalnichevski commented on HTTPCLIENT-872:
----------------------------------------------

Gerald,

This one is going to be a difficult one. I think we should approach the problem 
in several incremental steps. Can we start off by implementing interceptors for 
caching Basic and Digest auth states in order to avoid having to 
re-authenticate subsequent requests that share the same execution context? 
Something along the line of this example:

http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/httpclient/src/examples/org/apache/http/examples/client/ClientPreemptiveDigestAuthentication.java

Once we have that, we can think about adding a mechanism for preemtive 
initialization of the Basic scheme.

Cheers

Oleg 

> Add preemptive authentication
> -----------------------------
>
>                 Key: HTTPCLIENT-872
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-872
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpAuth
>    Affects Versions: 4.0 Final
>            Reporter: Gerald Turner
>            Priority: Trivial
>         Attachments: PreemptiveAuth.patch
>
>
> Wishlist request for preemptive authentication to be included in the API, 
> like HttpClient 3.x had.  There is an example 
> ClientPreemptiveBasicAuthentication.java that uses HttpRequestInterceptor 
> which I had adapted to my application and it works fine.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to