netlify / gotrue

An SWT based API for managing users and issuing SWT tokens.
https://www.gotrueapi.org
MIT License
3.84k stars 285 forks source link

Bug: Adding an additional GitLab email breaks external login #249

Closed erezrokah closed 4 years ago

erezrokah commented 4 years ago

Related to https://github.com/netlify/gotrue/pull/243#discussion_r408232590 Reproduction:

  1. Create a site with GitLab auth provider (with invite only configured under Identity settings).
  2. Invite GitLab primary email.
  3. Login with GitLab to site - see that login works.
  4. Add another email to GitLab.
  5. Try to login with GitLab - see that login fails with "Signups not allowed"