[ 
https://issues.apache.org/jira/browse/CAMEL-27665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-27665.
---------------------------------
    Resolution: Fixed

> camel-geocoder - proxyAuthMethod Digest sends Basic proxy credentials
> ---------------------------------------------------------------------
>
>                 Key: CAMEL-27665
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27665
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-geocoder
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.24.0
>
>
> {{GeoCoderEndpoint.configureProxyAuth()}} accepts {{proxyAuthMethod}} Basic 
> and Digest, and for both calls 
> {{GeoApiContext.Builder.proxyAuthentication(user, password)}}. In 
> google-maps-services 2.2.0, 
> {{OkHttpRequestHandler.Builder.proxyAuthentication()}} installs an OkHttp 
> proxy authenticator that always answers with {{Credentials.basic(user, 
> password)}} in the {{Proxy-Authorization}} header. The library has no Digest 
> support.
> So with {{proxyAuthMethod=Digest}} the producer still sends Basic proxy 
> credentials, the password Base64 encoded in clear text, while the user asked 
> for Digest (where the password is never sent). The option description and the 
> docs say Basic or Digest.
> Proposed change:
> * Accept only Basic. Any other value, Digest included, fails when the 
> producer starts with an {{IllegalArgumentException}} that says that only 
> Basic is supported.
> * Update the option description and the docs, and add a note to the upgrade 
> guide (a route with Digest that started before now fails at startup).
> _Claude Code on behalf of Claus Ibsen_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to