Reevaluate API return codes during authentication #65
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
luca0N/lanbassador#65
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As it currently stands, the server will use the
LANBASSADOR_RESPONSE_CODE_ERROR_NO_SUCH_OBJECTreturn code when a user attempts to login with invalid credentials. As such, thesendApiResponsefunction maps that value to the HTTP status code 404 Not Found, which may not be appropriate in the context of a REST-like API. 404'ing is appropriate when attempting to GET a non-existent object (e.g.,GET /users/luca0n), but not on a static endpoint with no variables (as is the case with this endpoint).If the return code is to be changed, then it must be done before the first stable version v1.0.0 to avoid the introduction of breaking changes in the future.