parse-community / parse-community/parse-server

Auth adapter error codes should be specific

Open
#8,659 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

state:breaking type:feature
Dominant language
JavaScript
Stars
21.4k
Forks
4.8k
Avg merge
7h 45m
Merged PRs (30d)
11

Description

New Feature / Enhancement Checklist
Current Limitation

Currently, if an additional adapter is used, and login is attempted without additional data is thrown, error code -1 is thrown. Also, if there is a throw from within validateLogin, the error code is 141.

Feature / Enhancement Description

The error codes for each of these cases should be specific, so UI can update to allow users to provide additional auth data.

Example Use Case
Alternatives / Workarounds
3rd Party References

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the additional adapter login path and the validateLogin error handling described in the issue. Review existing authentication error-code conventions and determine how the two cases should be distinguished; done means each case exposes a specific code that lets the UI request additional authentication data when appropriate.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
authentication, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.