Skip to content
This repository was archived by the owner on Jun 12, 2024. It is now read-only.
Discussion options

You must be logged in to vote

I note that your screenshot says "500 Internal Server Error" rather than the expected "401 Unauthorized" that you'd usually get if the username/password was incorrect.

FYI, the authentication endpoint will return 500 on any error case which is a common security practice.

Are you sure your username and password are correct?

I've tried the swagger documentation on the demo site and it works correctly

The Login endpoint accepts both JSON and Form Data and parses based on the Content-Type provided in the request. Both of these example should work

curl -X 'POST' \
  'https://homebox.fly.dev/api/v1/users/login' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/x-www-form-ur…

Replies: 8 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@proffalken
Comment options

@nodecentral
Comment options

@hay-kot
Comment options

Answer selected by nodecentral
Comment options

You must be logged in to vote
1 reply
@nodecentral
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #409 on April 15, 2023 04:24.