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

Hide page until logged in #85

Open
ej21 opened this issue Apr 9, 2018 · 5 comments
Open

Hide page until logged in #85

ej21 opened this issue Apr 9, 2018 · 5 comments

Comments

@ej21
Copy link

ej21 commented Apr 9, 2018

Hi all, Anyway the homepage and current status of garage doors could be hidden until username and password provided?

@andrewshilliday
Copy link
Owner

It's certainly possible. I'm not sure it would be preferable for the majority of users, but it could be added as an option.

@ej21
Copy link
Author

ej21 commented Apr 9, 2018

Option would be great. Thank you

@jdolence999
Copy link

jdolence999 commented Oct 22, 2019

I am late to the party putting this project to use since it looks like Andrew wrote the code over 6 years ago. I got it working with a Camera stream, but I do not want to expose anything to the Internet with out authenticating the user before the home page is loaded, too.

I am not a python programmer, but I have spent several weeks trying to figure out how to password protect the homepage with authentication. It would be nice to ensure both the homepage and clicking on the garage door would require authentication. I'm sure my wife is getting fed up.

I am hoping Andrew still monitors this site. I am willing to do the work, if someone can shed some light on how to do it. I have looked at every twisted authorization site and I can get the 'clk" to authorize (base code) or prior to the main site loading (breaks the site), but not just the main site or both. Help!

@ijaron
Copy link
Contributor

ijaron commented Jun 12, 2020

Just leaving this here for anyone else that might have the same issue that they wish to protect the entire page.
I'm using vouch-proxy via nginx reverse proxy to secure the controller. Mostly just using the sample setup from the projects readme. It doesn't give you a login for itself but rather allows you to authenticate against another source (e.i. you can use your google login and then set your email as the only allowed login)
Going that route also allows me to have the reverse proxy handle 100% of the ssl and out of network traffic.

@jdolence999
Copy link

That looks like a viable solution. I fixed the python script to authenticate before showing anything and incorporated a camera stream into the solution. The downside is that the authentication does not use another source or 2-factor.

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

4 participants