Discussion:
spring boot http4 basic auth configuration
Mark Hayen
2018-10-10 09:43:53 UTC
Permalink
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
FabryProg
2018-10-10 09:54:13 UTC
Permalink
You shuold use authenticationPreemptive param
Post by Mark Hayen
Hi,
I'm trying to configure basic authenicatio for the http4 component by using
the provided spring boot configuration 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?
Spring Boot 2.0.4.RELEASE
Camel 2.22.1
Thank you
Mark
Loading...