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

HTTP 401 Unauthorised on new installation, fetching recipes #19

Closed
CloCkWeRX opened this issue May 15, 2022 · 3 comments · Fixed by #31
Closed

HTTP 401 Unauthorised on new installation, fetching recipes #19

CloCkWeRX opened this issue May 15, 2022 · 3 comments · Fixed by #31

Comments

@CloCkWeRX
Copy link

CloCkWeRX commented May 15, 2022

  1. docker compose up
  2. create a user account
  3. View web console/refresh

Unexpectedly; there's a HTTP 401 Unauthorised response from /recipes

image

I would have thought that would simply be a HTTP 200 OK with an empty collection; OR if it's me having missed some configuration step, a visual warning.

@CloCkWeRX
Copy link
Author

Ah, this is because I was in a half logged in state - creating the user did not log me in fully.

@georgegebbett
Copy link
Owner

The auth system is super hacky - I'm half minded to get rid of it entirely, but also mindful that someone might have this open to the internet (I do...).

The password is stored in plaintext in the database and also occasionally sent in the clear from the server to the client. Definitely one to fix but lower on my priorities than actual recipe-related stuff.

I'll have a look at the initial setup one - that should be fairly easy to fix.

@georgegebbett
Copy link
Owner

This has been resolved (semi-satisfactorily) by #31

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

Successfully merging a pull request may close this issue.

2 participants