Skip to content

Feature request: make authData an array #1243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
markuswinkler opened this issue Mar 29, 2016 · 3 comments
Closed

Feature request: make authData an array #1243

markuswinkler opened this issue Mar 29, 2016 · 3 comments

Comments

@markuswinkler
Copy link

I am sorry if this is the wrong place, not sure where to post a feature request.

Details:
Right now it's not possible (as far as I know) to use different OAuth methods for the same user account.
I login with Facebook, a user is created. I login with Twitter, another user is created and so on.
Ideally it shouldn't matter what OAuth method (LinkedIn, Facebook, Twitter, ...) a user uses, they should all point to the same account. Amazon already does this with the Cognito service that returns the same unique ID independent of the OAuth provider.
I am wondering if something similar could be implemented with parse server, maybe even by leveraging AWS Cognito.

@tanmays
Copy link

tanmays commented Mar 29, 2016

I'm pretty sure you can already link multiple social networks to the same user. Check the linking section of doc here: https://parse.com/docs/rest/guide#users-linking

Once you have signed up or logged in with say a twitter account, submit a PUT request with FB authData and a valid user session token to link Facebook to the same Twitter based account.

I haven't tried it yet but if you use multiple oAuth in your app you should give it a try and see if it works as intended.

@flovilmart
Copy link
Contributor

@tanmays could not have said it better.

@markuswinkler
Copy link
Author

Great! 👍
Thank you @tanmays !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants