[ 
https://issues.apache.org/jira/browse/IVY-1094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12719456#action_12719456
 ] 

Mathieu Anquetin commented on IVY-1094:
---------------------------------------

Works for me!

But I am still wondering if this solution works for users who use basic 
authentication for their proxy. Maybe using the UsernamePasswordCredentials 
when no realm has been set will still be needed.

I am not closing this issue until some feedback on basic authentication is 
provided.

Thanks for accepting my contribution to your great project!
Mathieu

> Problem with NTLM proxy authentication
> --------------------------------------
>
>                 Key: IVY-1094
>                 URL: https://issues.apache.org/jira/browse/IVY-1094
>             Project: Ivy
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 2.1.0-RC1
>            Reporter: Mathieu Anquetin
>            Assignee: Maarten Coene
>             Fix For: trunk
>
>         Attachments: HttpClientHandler.txt
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> I had problems to resolve and retrieve artifacts from an IBiblio Resolver. I 
> was behind a corporate proxy and even if this proxy was correctly configured 
> in Ivy, I was permanently denied access.
> After looking at the HttpClientHandler source code, I found that this was due 
> to a lack of support for NTLM authentication. So I added this behavior in the 
> submitted patch trying not to break the original behavior.
> Now, Ivy supports NTLM authentication if  -Dhttp.proxyRealm=<your_domain> is 
> set in ANT_OPTS. I could not test Basic Authentication but it seems to work 
> also. Maybe someone can confirm ?
> Moreover, in order to avoid breaking an old bug, I put NTLM AuthPolicy after 
> the Basic one in the list authPrefs to make it of less priority during the 
> scheme selection.

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

Reply via email to