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+ signup fails after revoking app's rights. #78

Closed
xorgate opened this Issue May 21, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@xorgate

xorgate commented May 21, 2015

I have an app that uses Google+ signup. This works, it asks which account i want to use, I select the one present, I get the google dialog asking for permission, i hit ok. All fine.

Then I close my app, and in the Google+ app I revoke the rights of my app.

I would expect the same procedure as before to be run, asking me for permission.
Instead, I get the following screen:
device-2015-05-21-152941

Logcat:

05-21 15:17:15.369 12225-12225/E/com.auth0.googleplus.GooglePlusIdentityProvider﹕ Connection failed with unrecoverable error
05-21 15:17:15.369 12225-12225/ E/com.auth0.lock.LockActivity﹕ Failed to authenticate user
05-21 15:17:15.369 12225-12225/ E/com.auth0.googleplus.GooglePlusIdentityProvider﹕ Failed to clear G+ Session
java.lang.IllegalStateException: GoogleApiClient must be connected.
at com.google.android.gms.common.internal.zzv.zza(Unknown Source)
at com.google.android.gms.plus.Plus.zzf(Unknown Source)
at com.google.android.gms.internal.zzll.clearDefaultAccount(Unknown Source)
at com.auth0.googleplus.GooglePlusIdentityProvider.clearSession(GooglePlusIdentityProvider.java:108)
at com.auth0.lock.LockActivity.onAuthenticationError(LockActivity.java:221)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.squareup.otto.EventHandler.handleEvent(EventHandler.java:89)
at com.squareup.otto.Bus.dispatch(Bus.java:384)
at com.squareup.otto.Bus.dispatchQueuedEvents(Bus.java:367)
at com.squareup.otto.Bus.post(Bus.java:336)
at com.auth0.lock.identity.LockIdentityProviderCallback.onFailure(LockIdentityProviderCallback.java:62)
at com.auth0.googleplus.GooglePlusIdentityProvider.onConnectionFailed(GooglePlusIdentityProvider.java:147)
at com.google.android.gms.common.internal.zzj.zzj(Unknown Source)
at com.google.android.gms.common.api.zze.zzf(Unknown Source)
at com.google.android.gms.common.api.zze.zzc(Unknown Source)
at com.google.android.gms.common.api.zze.zzc(Unknown Source)
at com.google.android.gms.common.api.zze$zza$1.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:155)
at android.app.ActivityThread.main(ActivityThread.java:5696)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1028)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)

using:
compileSdkVersion 21
buildToolsVersion "22.0.1"
compile 'com.auth0.android🔒1.7.0'
compile 'com.auth0.android:lock-googleplus:1.7.0'
compile 'com.google.android.gms:play-services-plus:7.3.0'

@hzalaz

This comment has been minimized.

Show comment
Hide comment
@hzalaz

hzalaz May 27, 2015

Member

@xorgate seems to be that the new play-services changed the way this error should be handled. I'll update the G+ integration to use 7.+ version and check this (now it's using 6.+).

Member

hzalaz commented May 27, 2015

@xorgate seems to be that the new play-services changed the way this error should be handled. I'll update the G+ integration to use 7.+ version and check this (now it's using 6.+).

@hzalaz

This comment has been minimized.

Show comment
Hide comment
@hzalaz

hzalaz Jun 12, 2015

Member

Fixed in Lock-GooglePlus.Android repo

Member

hzalaz commented Jun 12, 2015

Fixed in Lock-GooglePlus.Android repo

@hzalaz hzalaz closed this Jun 12, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment