Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lsafelix75 opened this issue Jan 2, 2021 · 4 comments

Comments

@lsafelix75
Copy link

lsafelix75 commented Jan 2, 2021

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//pull/307/commits/df4f4f69e16cc8b843674c208f27248382a58cdb]([Main UI] Pass access token in header if cookie flag set #328).

@domotica-undici
Copy link

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
Copy link
Author

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
Copy link
Author

lsafelix75 commented Feb 14, 2021

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
Copy link

domotica-undici commented Feb 14, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants