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

Feature Request: Add Login Page to view the Dashboard #728

Closed
giuliolibrando opened this issue Dec 12, 2023 · 7 comments
Closed

Feature Request: Add Login Page to view the Dashboard #728

giuliolibrando opened this issue Dec 12, 2023 · 7 comments

Comments

@giuliolibrando
Copy link

Having a login page upfront (even better if connected with an external ldap/active-directory authenticator) would be a great addition for the dashboard. There're cases where not everybody on the network should see the links, even if there's no sensitive data.

@giuliolibrando giuliolibrando changed the title Feature Request: Add Login to view the Dashboard Feature Request: Add Login Page to view the Dashboard Dec 12, 2023
@nikkopt
Copy link

nikkopt commented Dec 14, 2023

You can easily do that by using a reverse proxy like nginx or traefik plus some kind of authenticator like authelia or authentik

@giuliolibrando
Copy link
Author

Yeah, I know that you can chain projects to obtain the "same" result but a native implementation would be better for everyone

@nikkopt
Copy link

nikkopt commented Dec 15, 2023

I don't know if it's feasible. The projects that support those features natively are huge in comparison, like portainer, nextcloud, grafana, etc. Homer has basically one dev. Also, on some, it's a paid feature.
One thing it can probably be done is to use the Mod auth module on lighttpd. It has basic http auth that is better than nothing. It also has an ldap auth backend. I just don't know if it would make things complex quickly.
You can try editing the lighttpd.conf file and turn on the feature but homer is so small that it might be missing dependencies.

@zs-dima
Copy link

zs-dima commented Dec 19, 2023

You can do that by using a reverse proxy and authenticatior, no need to overcomplecate dashboard.

@Dleewee
Copy link

Dleewee commented May 14, 2024

Apologies if not a good place to ask, but relevant. I have setup homer with Caddy2 (proxy) and Authentik. I was able to redirect users to authenticate with Authentik, but on redirect back to homer around 50% of the time would get a browser download box with the "config.yaml" file instead of the actual webpage. Any thoughts or tips on what's causing that?

@bastienwirtz
Copy link
Owner

@giuliolibrando : As others mentioned, an external auth tool is the way to go with Homer. Homer is simple static HTML and aim to stay that way. There is a lot of alternative out there offering built in authentication is you need it.

@Dleewee That's probably an issue with the cache or the PWA. Once loaded Homer will only do a request for the config.yaml file. Could you configure Authentik to redirect to homer address instead of redirecting to the requested file ?

@bastienwirtz
Copy link
Owner

@Dleewee feel free to open a dediated issue for that if you need. I'm closing this one.

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

5 participants