Bearer-Authentication with HTTP-Binding

Hi Forum,

I want to integrate a SOLARMANPV-Webservice in openHAB. I have installed SmartHome/J HTTP Binding and JSONpath-Transformation anbinden. The communication with the service works for me.

Now I nead a “Bearer-Authentication” for my calls. My tests with Postman are successfull an I’ll get the right information from the webservice. Without “Bearer-Authentication” I’ll get information from the webservice, that the authentication is wrong.

I have createt the think in text-configuration (same problem in GUI-configuration):

Thing http:url:solarmanpv_station "SOLARMANPV - Station" [
headers="Authorization=bearer HIER_KOMMEN_919_ZEICHEN_TOKEN",
refresh=15] {
Type string : msg "msg" [ stateTransformation="JSONPATH:$.msg" ]
Type string : code "code" [ stateTransformation="JSONPATH:$.code" ]
Type string : success "success" [ stateTransformation="JSONPATH:$.success" ]
Type string : requestId "requestId" [ stateTransformation="JSONPATH:$.requestId" ]

If I use “Authorization=bearer HIER_KOMMEN_919_ZEICHEN_TOKEN” the Thing didn’t come ONLINE and it’s status is UNKNOWN…

Here some information from the DEBUG-Log:

2023-07-16 16:59:29.465 [INFO ] [nding.http.internal.HttpThingHandler] - Using the secure client for thing 'http:url:solarmanpv_station'.

2023-07-16 16:59:29.467 [DEBUG] [nding.http.internal.HttpThingHandler] - No authentication configured for thing 'http:url:solarmanpv_station'

2023-07-16 16:59:30.651 [DEBUG] [p.internal.http.HttpResponseListener] - Requesting '[](' (method='GET', content='null') failed: 500 Internal Server Error

If I remove “bearer” on the begin of the token, the Thing comes online.

Are there any suggestions what I can do to communicate with an Webservice with Bearer-Authentication?


Some ideas or hints?

I had some conversation with @J-N-K about my problem. The problem is fixed with http-binding snapshot 3.2.19. Thanks!