mozilla-iam / auth0-deploy

Rules and hosted pages (lock) used for the Auth0 instances of Mozilla.
Mozilla Public License 2.0
7 stars 21 forks source link

No account linking when switching primary email in github #257

Open viorelaioia-zz opened 5 years ago

viorelaioia-zz commented 5 years ago

Preconditions: Have and account in mozillians, github with 2 emails: phoenix1moz@gmail.com Primary, viorela.ioia@softvision.ro secondary

STR:

  1. Login with github in mozillians
  2. Logout
  3. Login to github and set the primary email to viorela.ioia@softvision.ro
  4. Login to mozillians again using github (primary email is now viorela.ioia@softvision.ro )

Expected: Same mozillians profile as in step #1 is return

Actual: User is prompted to create a new mozillians account.

Note: This worked as expected yesterday.

gdestuynder commented 5 years ago
    "name": "viorela.ioia@softvision.ro",
    "user_id": "github|35528677"

I only see this user, which means that the switch worked (github only sends the primary email to us) and that this user id was phoenix1moz's user id.

I don't know how the code handles this in Mozillans, but from a rule/auth0 point of view it would send the same data yesterday and today

@akatsoulas