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] error "should be object" on auth propertie #176

Closed
4 tasks done
MilesTEG1 opened this issue Aug 22, 2021 · 3 comments
Closed
4 tasks done

[BUG] error "should be object" on auth propertie #176

MilesTEG1 opened this issue Aug 22, 2021 · 3 comments
Labels
🤷‍♂️ Question [ISSUE] Further information is requested

Comments

@MilesTEG1
Copy link

MilesTEG1 commented Aug 22, 2021

Environment

Self-Hosted (Docker)

Version

1.6.5

Describe the problem

When I edit the configuration in the UI, I see a warning icon ⚠️ (see screenshot) saying :

contains invalid properties

This is the auth on witch there is a problem :

should be object

Additional info

image

The yml config file is like this :
image
It's like your example auth config : https://github.com/Lissy93/dashy/blob/master/docs/authentication.md#setting-up-authentication

Please tick the boxes

@MilesTEG1 MilesTEG1 changed the title [BUG] <title> [BUG] error "should be object" on auth propertie Aug 22, 2021
@Lissy93
Copy link
Owner

Lissy93 commented Aug 22, 2021

Take a look at the Authentication Docs

@Lissy93 Lissy93 closed this as completed Aug 22, 2021
@Lissy93
Copy link
Owner

Lissy93 commented Aug 22, 2021

So you're config has a tiny error, put your users under the users attribute. It is easy to miss ;)

Sorry, I meant to create a post in the Discussion to announce this. Basically #174 involved some changes to the auth object to allow for more advanced authentication methods.

The previous structure will continue to work just fine, but you'll see a validation warning, and a message informing you how to fix it in the console. There is a note about this in the Troubleshooting Guide, and you can see more info about authentication in the Authentication Docs and the Configuring Docs

You basically just need to replace:

auth:
- user: xxx
  hash: xxx

with

appConfig:
  auth:
    users:
    - user: xxx
      hash: xxx

Hope that helps :)

@Lissy93 Lissy93 added the 🤷‍♂️ Question [ISSUE] Further information is requested label Aug 22, 2021
@MilesTEG1
Copy link
Author

@Lissy93
Oh !!! I swear I read the doc... but my eyes didn't see then the differences I see now... 😅
Thank you for bringing me the solution.
Next time, I'll read more carefully the doc 😇

@Lissy93 Lissy93 pinned this issue Sep 28, 2021
@Lissy93 Lissy93 unpinned this issue Apr 2, 2022
asterling8516 pushed a commit to asterling8516/dashy that referenced this issue Nov 23, 2023
asterling8516 pushed a commit to asterling8516/dashy that referenced this issue Nov 23, 2023
Closes Lissy93#176

Signed-off-by: Bjorn Lammers <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤷‍♂️ Question [ISSUE] Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants