Skip to content

Inappropriate error message with pending user #238

Description

@Gaetanbrl

In the context of issue #156,
I observe that certain authentication errors are caught by a general exception such as “duplicate user name” or “duplicate user id.”

For example, if the user already exists (duplicate user id) or is pending, the gateway returns a “duplicate user name.” I believe this does not provide precise information and that the message could be adapted depending on the case.

We will create a pull request to manage pending status error with OAuth2 user, but the following use case will be not covered in this PR :

  1. create a user with classic geOrchestra form
  2. Use will be pending by default
  3. Try to sign in

Here, gateway will try to create user again :

  1. You will have an invalid user login or password message (invalid_credentials code)

The error will be triggered because the user already exists :

throw new DuplicatedUsernameFoundException(accountError.getMessage());

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions