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
Google OAuth Configuration #1850
Comments
+1 looking for this |
You should not need anything on the server, just set the |
@flovilmart I have tried that and got the error described here: #1961 |
Did you try with just putting |
In the server configuration? Like this? I am still getting the same issue with this. oauth: {
google: true
} |
@flovilmart any gist available for Android SDK oauth similar to your https://gist.github.com/flovilmart/68a6c538496953408bb1 for iOS? |
Nope sorry. That should be pretty similar though [F v:lmart]
|
I found this hard to figure out too.. but in case it helps others oauth: { google: true } is not needed on the server. Android code looks like this and is called from Activity.onActivityResult:
It will create a new account even if a Facebook user exists with that email already so best not to fill in the User.email field or you will have problems because duplicates aren't allowed. Setting a new field like "User.appEmail" might work better. |
@rsweny Thanks for this blob of code. It helped me.
|
What would the configuration look like for using Google OAuth to sign in users? The documentation mentions this:
{ oauth: { twitter: { consumer_key: "", // REQUIRED consumer_secret: "" // REQUIRED }, facebook: { appIds: "FACEBOOK APP ID" } } }
but not what it should look like for Google. Also for the client iOS SDK, I know I would use the Google Sign In SDK, but how do I link that to Parse? Thanks.
The text was updated successfully, but these errors were encountered: