X-OPENHAB-TOKEN Use for MainUI Authentication?


Does OH3’s MainUI recognize this token and automatically logon user to OH3 instance? Let’s say I create a new user in OH3 called abc and use the account to create an API Token. This API Token is piggy-backed in X-OPENHAB-TOKEN to automatically login abc when the user access MainUI.

You need to look somewhere in UI sources and how it does handle initialization. Token thing you mention is relevant for server, main ui code rely on authorization header.

of course the token has to be in the request header otherwise how are you going to send it over http.

I’m trying to avoid double login 1. OpenHAB cloud and the other one is OpenHab MainUI. My openhab instances have different users created which attach to different openHAB cloud user account.