openhab / openhab-cloud

Cloud companion for openHAB instances
Eclipse Public License 2.0
315 stars 161 forks source link

REST API Basic authentication pass-through? #399

Open gooman-uk opened 1 year ago

gooman-uk commented 1 year ago

I'm trying to create a rule in my local OpenHAB instance using the /rules API endpoint and POST method, through myopenhab.

I'm getting a 401 error from myopenhab- presumably since my local OpenHAB instance needs authentication for this.

I have "Allow Basic Authentication" turned on in API Security - but how do I pass the Authorization header? In my HTTP POST to myopenhab, this will the authentication key for myopenhab, not for my local instance