I'm currently working on a project to integrate OAuth with a pre-existing, in-house auth system. We have uncovered a number of potential issues, and I'm surprised to find so little online about what I find to be an amazing feature when it works right, but a terribly annoying and even stressful feature when it doesn't.
Do you have any recommended reading that outlines issues with user experience and the OAuth process? Personally I have run into issues with the Spotify / Facebook integration, and am hoping there is some research into what went wrong there, or in similar scenarios.
Here's just a few of the scenarios that I'm thinking through:
If I'm already registered as firstname.lastname@example.org and I hit the "login with Google" button we plan to then merge their accounts. They could then login with their previous password, or login by pressing that button again.
Cool. That makes sense.
If I'm already registered as email@example.com and I hit the "login with Google" button, the accounts will not be merged. Google ignores periods and pluses
. +in your email, but we can't expect a user to know this. Since our existing auth system treats firstname.lastname@example.org and email@example.com as unique, this seems like a great way to lead a user to confusion when their accounts aren't merged.
This has a range of issues surrounding merging and unmerging accounts. What seems like the best solution for this case?
A brand new user registers with OAuth. They are not prompted to have a username / password. They later decide they don't want us to have access to their information in Google and they want to unlink.
How should the unlink be handled? Since they don't have a username or password, how should they be able to log in?
A user is registered with firstname.lastname@example.org. They forget this and they press "login with Google". Now they have two accounts with two emails. They want to be able to access all their data on their yahoo account while still utilizing this new login method.
How can we securely allow these accounts to merge?