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

[BUG] Basic Auth not Working #1063

Closed
itsmejomijohn opened this issue Jan 12, 2023 · 20 comments
Closed

[BUG] Basic Auth not Working #1063

itsmejomijohn opened this issue Jan 12, 2023 · 20 comments
Assignees
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working 🕸️ Inactive

Comments

@itsmejomijohn
Copy link

itsmejomijohn commented Jan 12, 2023

Environment

Self-Hosted (Docker)

System

No response

Version

2.1.1

Describe the problem

enable built-in Basic Auth in conf.yml. but it is not working,

Additional info

appConfig:
theme: colorful
layout: auto
iconSize: medium
language: en
auth:
users:
- user: itadmin
hash: XXXXXXXXXXXXXXXXXXXXXXXXXX
type: admin
pageInfo:
title: Home Lab
description: Welcome to your Home Lab!
navLinks:
- title: GitHub
path: https://github.com/Lissy93/dashy
- title: Documentation
path: https://dashy.to/docs
footerText: ''
sections:

  • name: Starter Only
    icon: fas fa-server
    items:

Please tick the boxes

🚀 A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more! - GitHub - Lissy93/dashy: 🚀 A self-hostable personal dashboard ...
Documentation | Dashy, a self-hosted dashboard for your homelab
Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.
@itsmejomijohn itsmejomijohn added the 🐛 Bug [ISSUE] Ticket describing something that isn't working label Jan 12, 2023
@liss-bot
Copy link
Collaborator

If you're enjoying Dashy, consider dropping us a ⭐
🤖 I'm a bot, and this message was automated

@NinjaAway
Copy link

NinjaAway commented Jan 13, 2023

Hello,
I manage to get it working by doing this :

  1. Config file :
appConfig:
  auth:
    enableGuestAccess: true
    users:
      - user: user1
         hash: XXXXX
         type: admin
  disableConfigurationForNonAdmin: true
  1. Reload the container/API
  2. Erase stored cookies/data (check your browser doc)
  3. Reload the page

Now I got this little arrow on the top right corner to login.
Hope it helps.

Here is the only one post mentionning it that I found: https://www.reddit.com/r/selfhosted/comments/t9gqgb/trying_to_setup_dashy_but_cant_get_authentication/

Im currently setting up dashy and i am not able to figure out why authentication is not working. From what o could gather i just need to add a...

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Jan 13, 2023
@aurrak
Copy link

aurrak commented Jan 16, 2023

I am also having this problem. I have an admin user set up but upon going to the dashboard it goes straight into guest mode without any way to log on.

I tried adding disableConfigurationForNonAdmin: true as suggested above, it worked for a while but today it happened again and goes straight to guest mode.

Without being able to logon as admin, I am not able to persist any config changes to disk.

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Jan 17, 2023
@kdruelle
Copy link

I have the same problem with authentication not working with the 2.1.1 version

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Jan 18, 2023
@aurrak
Copy link

aurrak commented Jan 22, 2023

I am also having this problem. I have an admin user set up but upon going to the dashboard it goes straight into guest mode without any way to log on.

I tried adding disableConfigurationForNonAdmin: true as suggested above, it worked for a while but today it happened again and goes straight to guest mode.

Without being able to logon as admin, I am not able to persist any config changes to disk.

I "solved" the issue by following the comment here with a combination of enableGuestAccess: true and disableConfigurationForNonAdmin: true.

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Jan 23, 2023
@Finnmccarthy
Copy link

Finnmccarthy commented Jan 23, 2023

"solved" the issue by following the comment #990 (comment) with a combination of enableGuestAccess: true and disableConfigurationForNonAdmin: true.

I was having the same issue and this solution solved the login icon never showing, but when I sign in as an admin it says "Some configuration features have been disabled by your administrator" in the configuration options.
Here is my config:

appConfig:
  disableConfigurationForNonAdmin: true
  auth:
    enableGuestAccess: true
    users:
    - user: username
      hash: hash-here
      type: admin

@liss-bot liss-bot added 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending and removed 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending labels Jan 23, 2023
@Ran-Xing
Copy link

Ran-Xing commented Feb 2, 2023

+1+1

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Feb 2, 2023
@alblackt
Copy link

alblackt commented Feb 2, 2023

Same to me.
Auth doesn't work.
Admin user set up but upon going to the dashboard it goes straight into guest mode without any way to log on.

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Feb 3, 2023
@Aerowinder
Copy link

Aerowinder commented Feb 16, 2023

Same to me. Auth doesn't work. Admin user set up but upon going to the dashboard it goes straight into guest mode without any way to log on.

It does work, but for the initial setup, you have to manually edit the config file with nano/vi/etc. and rebuild from the command line. After that, it works. This is not clearly indicated, and it should be.

@liss-bot liss-bot added 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending and removed 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending labels Feb 16, 2023
@Tchuch0
Copy link

Tchuch0 commented Feb 17, 2023

Same to me. Auth doesn't work. Admin user set up but upon going to the dashboard it goes straight into guest mode without any way to log on.

It does work, but for the initial setup, you have to manually edit the config file with nano/vi/etc. and rebuild from the command line. After that, it works. This is not clearly indicated, and it should be.

Hi,

what do you mean with "rebuild from the command line" @Aerowinder ?

Thanks in advance

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Feb 17, 2023
@Aerowinder
Copy link

cd /opt/dashy
yarn build

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Feb 18, 2023
@liss-bot
Copy link
Collaborator

This issue has gone 6 weeks without an update. To keep the ticket open, please indicate that it is still relevant in a comment below. Otherwise it will be closed in 5 working days.

@liss-bot liss-bot added the ⚰️ Stale [ISSUE] [PR] No activity for over 1 month label Mar 20, 2023
@liss-bot
Copy link
Collaborator

This issue was automatically closed because it has been stalled for over 6 weeks with no activity.

@liss-bot liss-bot removed the ⚰️ Stale [ISSUE] [PR] No activity for over 1 month label Mar 26, 2023
@coderunway
Copy link

This is still an open issue. Does not work even after adding enableGuestAccess: true and disableConfigurationForNonAdmin: true parameters. I have tried it in the incognito mode browser too, to ensure its not a caching issue. Any advice is appreciated.

appConfig:
auth:
enableGuestAccess: false
users:
- user: user1
hash: #####################
type: admin
- user: user2
hash: ########################
type: normal
disableConfigurationForNonAdmin: true

@KLServer
Copy link

KLServer commented Dec 7, 2023

For the same, still not working, fresh install, it just keeps getting on the homescreen page without a login page. (I have set Guest mode off), I get (when I add some users) a notif "some settings are...." but I cannot get a login screen...

@Lissy93
Copy link
Owner

Lissy93 commented Dec 31, 2023

I've not been able to recreate this. At least with the latest version, following the Authentication Guide seems to work fine for me.

Let me know if still an issue

@whereismyfun42
Copy link

whereismyfun42 commented Jan 1, 2024

Just set the auth up today - I do not receive an auth at all. v. 2.1.1
appConfig:
theme: dashy-docs
statusCheck: false
auth:
users:
- user: homelab
hash: ##############################################################
type: admin
- user: zuk
hash: ##############################################################
type: admin

@okietech
Copy link

okietech commented Jan 9, 2024

I'm having the same issue.

@TheRealGramdalf
Copy link

See #1290 (comment) for a full explanation/semi solution

For notifications:
@okietech @Lissy93 @kdruelle @alblackt @coderunway @KLServer @Aerowinder @Tchuch0 @Ran-Xing @Finnmccarthy @aurrak @NinjaAway @itsmejomijohn
Sorry if you didn't want to be pinged, but I figure you probably did - or you wouldn't have participated in the issue

@jewstan83
Copy link

this got it working for me.

@Lissy93 I had to manually rebuild the app after enabling authentication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working 🕸️ Inactive
Projects
None yet
Development

No branches or pull requests