Hi @Nischayn22 and @DukeofRealms, thanks for the great extension! I would like to use it for the OpenStreetMap wiki. At the moment OSM wiki has its own accounts, and the main OSM itself has separate accounts. They clearly should be merged. The main OSM system (editing system) can server as an Oauth server. In your opinion, what is the best approach, especially considering that many people already have accounts in both systems, and probably would want to merge them rather than duplicating them in the wiki. Thanks!
Topic on Extension talk:OAuth2 Client
Hi @Yurik
You can use OSM as a a Oauth server, but currently I don't think it will be able to handle duplicate accounts. That feature can be added though where it has to match the user's email addresses. Hope that helps.
How difficult would it be to add the email matching? I could try to hack on it, but some guiding starting points would be great. Thx!
Won't be much difficult actually, you need to check if the email is already in use just before you try to create a new user, you could also try checking the username. I think you can starting by looking here: https://github.com/Schine/MW-OAuth2Client/blob/master/SpecialOAuth2Client.php#L149