You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Mark Hayen <m....@first8.nl.INVALID> on 2018/10/10 09:43:53 UTC

spring boot http4 basic auth configuration

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

Re: spring boot http4 basic auth configuration

Posted by FabryProg <fa...@gmail.com>.
You shuold use authenticationPreemptive param

Il Mer 10 Ott 2018, 11:44 Mark Hayen <m....@first8.nl.invalid> 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
>