Hi Jin,
The scenario is more like this:
- User has @gmail email address
- Signs up and goes through federated login (clicking gmail button), redirected to google to confirm
- Our web server received the Google assertion and call GITKit VerifyAssertion() API
- The API returns an @gmail email, along with photo, etc...
--- All as expected up to here.
- The user comes to log in in 2 months
- Clicks on the federated login, redirecting to google
- Our web server received the Google assertion and call GITKit VerifyAssertion() API
- The API returns an @googlemail email this time, along with photo, etc...
Hence, it's not a discrepancy between what the user thinks / types, it's a discrepancy between what the API returns from the same account over time.
My assumption was the email would remain static (unless there is a big change like
hotmail.com ->
outlook.com) - this is false, so I'll have to re-think and rely solely on the identifier field.
Thanks!