Skip to content

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

@pronguen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBreaks something but is not blockingf: user managementRelated to users

    Type

    No type

    Projects

    Status

    Product Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions