Re: spring boot http4 basic auth configuration

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: spring boot http4 basic auth configuration

fabryprog
You shuold use authenticationPreemptive param

Il Mer 10 Ott 2018, 11:44 Mark Hayen <[hidden email]> ha scritto:

> Hi,
>
> I'm trying to configure basic authenicatio for the http4 component by using
> the provided spring boot configuration properties.
>
> application.properties:
> camel.component.http4.http-configuration.auth-method=Basic
> camel.component.http4.http-configuration.auth-username=peppi
> camel.component.http4.http-configuration.auth-password=kokki
>
> According to the newest docs on Github these should be picked up by
> the autoconfiguration, and they are, but when comes to configuring
> the httpcomponent, the relevant part of the code cannot find the
> properties anymore.
>
> This happens in HttpComponent line 145 to 170.
>
> Do I need more/other properties being set?
>
> versions used:
> Spring Boot 2.0.4.RELEASE
> Camel 2.22.1
>
> Thank you
>
> Mark
>