Skip to content

SSO via ORCID does not work if the ORCID e-mail is private #876

Description

@pronguen

Bug description:

SSO via ORCID does not work if the ORCID e-mail is private.

Expected behavior:

After submitting the registration form

  • if the e-mail matches a SONAR account: the user is logged in and receives a confirmation of the login
  • if the e-mail does not match a SONAR account: the user is not logged in and receives a clear error message

Steps to Reproduce:

  1. You have an ORCID account with a private e-mail AND you have a SONAR account with this same e-mail
  2. On SONAR, you click on "Login with ORCID"
  3. You actually login on ORCID and are redirected to SONAR
  4. SONAR opens the registration form (https://sonar.test.rero.ch/oauth/signup/orcid/) because it didn't receive your ORCID e-mail to match the two accounts
  5. You enter your e-mail
  6. You are not logged in SONAR and don't receive any message

Context

Server:

  • production: v1.7.0

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBreaks something but is not blocking

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions