openhab / openhab-cloud

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

Repeated "Sign-In" Request When Access OH3 Instances on Private Cloud Instance #326

Open lsafelix75 opened 3 years ago

lsafelix75 commented 3 years ago

Hi,

I believe this has been discussed extensively, which includes this link

[[Main UI] Pass access token in header if cookie flag set openhab/openhab-webui#328](https://github.com/openhab/openhab-webui/pull/328).

However, whenever i click on Online's OH3 instance (https://home.x.com), i am always greeted with login box (OpenHABClound credential). Are the anything settings that we need to configure in NGINX configuration like CORs which is not mentioned in the [https://github.com/openhab/openhab-cloud/pull/307/commits/df4f4f69e16cc8b843674c208f27248382a58cdb]([Main UI] Pass access token in header if cookie flag set #328).

domotica-undici commented 3 years ago

same problem here. home.domoticaundici.it and cloud.domoticaundici.it are on the same server. i also tried with home.cloud.domoticaundici.it but nothing don't know how to upgrade from cloud.X to home.X

lsafelix75 commented 3 years ago

I believe the code is broken or not explained properly. I traced the code. The only place to redirect to 307 happens on route/index.ejs which will not be called at all if click on open OH3 dashboard via home.yourhost.com link. By clicking this link it will route you to an homepage and asking for username password

lsafelix75 commented 3 years ago

BEWARE... there are many places are hardcoded to use home.YourDomain.com ... if you change the prefix to something else then you will need to search the code and change it. Otherwise, it won't work and your are rerouted to a login page gain when you click on Access Remote Dashboard. Good luck

domotica-undici commented 3 years ago

Thank you so muchIl 14 feb 2021 10:13, Felix Lo notifications@github.com ha scritto: BEWARE... there are many places are hardcoded to use home.YourDomain.com ... you change the prefix to something else then you will need to seach the code and change it. Otherwise, it won't work and your are rereouted to login page when you click on Access Remote Dashboard. Good luck

—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.