Skip to content

Update google.js #2023

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

Merged
merged 1 commit into from
Jun 10, 2016
Merged

Conversation

MC0212
Copy link
Contributor

@MC0212 MC0212 commented Jun 10, 2016

Updated the authentication method of Google Sign-in (from v1 to v3)
@codecov-io
Copy link

codecov-io commented Jun 10, 2016

Current coverage is 91.92%

Merging #2023 into master will not change coverage

@@             master      #2023   diff @@
==========================================
  Files            91         91          
  Lines          6431       6431          
  Methods        1099       1099          
  Messages          0          0          
  Branches       1350       1350          
==========================================
  Hits           5912       5912          
  Misses          519        519          
  Partials          0          0          

Powered by Codecov. Last updated by a00d795...bc536d9

@drew-gross drew-gross merged commit 6415a35 into parse-community:master Jun 10, 2016
@drew-gross
Copy link
Contributor

Looks like this should work. Thanks!

@abhijeet-aressindia
Copy link

abhijeet-aressindia commented Nov 9, 2016

@drew-gross when i validating access_token manually with
https://www.googleapis.com/oauth2/v3/tokeninfo?access_token=############

getting response like
{
"azp": "1026723124608-htr14c7hdvqkbsie622gobp5gaerkes8.apps.googleusercontent.com",
"aud": "1026723124608-htr14c7hdvqkbsie622gobp5gaerkes8.apps.googleusercontent.com",
"sub": "###############",
"scope": "https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/plus.moments.write https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/plus.profile.agerange.read https://www.googleapis.com/auth/plus.profile.language.read https://www.googleapis.com/auth/plus.circles.members.read",
"exp": "1478670089",
"expires_in": "1308",
"access_type": "online"
}

But when i tying from android with ParseUser.logInWithInBackground("google", params)
getting response
{ code: 101, message: 'Google auth is invalid for this user.' }

here is log from server.
2016-11-09T04:42:29.202317+00:00 heroku[router]: at=info method=POST path="/server/users" host=espressoft-parse-server.herokuapp.com request_id=5cbbad1b-dbf2-4315-9f90-7d43320488b5 fwd="49.248.139.244" dyno=web.1 connect=1ms service=60ms status=404 bytes=549
2016-11-09T04:42:29.144915+00:00 app[web.1]: verbose: REQUEST for [POST] /server/users: {
2016-11-09T04:42:29.144925+00:00 app[web.1]: "authData": {
2016-11-09T04:42:29.144926+00:00 app[web.1]: "google": {
2016-11-09T04:42:29.144927+00:00 app[web.1]: "access_token": "#############################",
2016-11-09T04:42:29.144928+00:00 app[web.1]: "id": "123456789"
2016-11-09T04:42:29.144929+00:00 app[web.1]: }
2016-11-09T04:42:29.144929+00:00 app[web.1]: }
2016-11-09T04:42:29.144933+00:00 app[web.1]: } method=POST, url=/server/users, host=espressoft-parse-server.herokuapp.com, connection=close, x-parse-revocable-session=1, x-parse-os-version=6.0, x-parse-app-build-version=9, x-parse-client-key=, x-parse-client-version=a1.13.0, x-parse-app-display-version=1.2.0, x-parse-installation-id=1df54554-e985-4cad-a897-a555a12951b7, user-agent=Parse Android SDK 1.13.0 (com.hp.babyapp/9) API Level 23, x-parse-application-id=j836GbrAG1uquh1GtkhliEau1B0ylheZXW8Zqk4Y, content-type=application/json, accept-encoding=gzip, x-request-id=5cbbad1b-dbf2-4315-9f90-7d43320488b5, x-forwarded-for=49.248.139.244, x-forwarded-proto=https, x-forwarded-port=443, via=1.1 vegur, connect-time=1, x-request-start=1478666549139, total-route-time=0, content-length=143, access_token=###################, id=123456789
2016-11-09T04:42:29.199324+00:00 app[web.1]: error: Error generating response. ParseError { code: 101, message: 'Google auth is invalid for this user.' } code=101, message=Google auth is invalid for this user.
2016-11-09T04:42:29.201648+00:00 app[web.1]: [object Object]

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

Successfully merging this pull request may close these issues.

4 participants