Skip to content
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

Reset password for a user that sign via Facebook #3357

Closed
mmarshak opened this issue Jan 11, 2017 · 5 comments
Closed

Reset password for a user that sign via Facebook #3357

mmarshak opened this issue Jan 11, 2017 · 5 comments
Labels
type:feature New feature or improvement of existing feature

Comments

@mmarshak
Copy link

I am using Parse Server 2.2.25, and it seems that if a user on the client sign up with Facebook. And later he go to any client app and ask for password reset, then Parse server send him a reset password link which is meaningless because his password is kept in Facebook. I would expect that he will get some error message saying that he can not reset his password because his account is own by Facebook.
When the user open the link instead of his email address he get the username which is the Facebook id which look to him like a garbage.

Is there any way to intercept (via cloud code) the reset request and send him an error page saying that he can not reset to the password? I will think that this should be part of the basic Parse server reset password flow.

@jhamet93
Copy link

My first crack at this was checking for the existence of data in authData to indicate whether the user signed up via another application. However, I would imagine when linking to an existing user through Facebook or Twitter for example, that field gets populated and wouldn't necessarily indicate whether that user signed up through Facebook/Twitter vs organically through Parse Server.

Is that thinking sound ?

@ciekawy
Copy link

ciekawy commented Jan 11, 2019

I am looking an answer for this one too - is it ever possible to setup a password for user signed up with an oAuth?

@TomWFox
Copy link
Contributor

TomWFox commented Apr 3, 2019

@ciekawy You could add email / password Auth to an account that initially signed up with Facebook.

@cjosepha
Copy link

Parse generates a random username for users that signed up with Facebook. If your app allows to define a custom username after the Facebook signup, this user will still have no password so will not be able to log in via username/password, but only via Facebook. By allowing to reset the password on this user, he will be able to set a password for its account and so log in with username/password.

@mtrezza
Copy link
Member

mtrezza commented Jan 31, 2021

I'm closing this as there are ways to allow a user to log in with email / password if they signed up with 3rd party auth:

  • If the user does not have an email address set: add in-app feature for auth-logged-in user to set email / password.
  • If the user has an email address set: add in-app feature for auth-logged-in user to set password or allow password reset link to be requested.

@mtrezza mtrezza closed this as completed Jan 31, 2021
@mtrezza mtrezza added type:feature New feature or improvement of existing feature and removed type:improvement labels Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or improvement of existing feature
Projects
None yet
Development

No branches or pull requests

8 participants