google-services icon indicating copy to clipboard operation
google-services copied to clipboard

[GoogleAccountDataServiceImpl] getToken() -> BAD_AUTHENTICATION

Open mtrakal opened this issue 8 years ago • 35 comments

Step 1: Are you in the right place?

NO, I'm not, but it's really hard to contact google for bug reports which are not related to http://b.android.com/ ... :/

  • For issues or feature requests related to the code in this repository file a Github issue.
  • For general technical questions, post a question on StackOverflow tagged appropriately.

Step 2: Describe your environment

  • Device: Sony Xperia Z3 Compact, Nexus 5, Elephone P6000
  • OS version: 6.0.1, 6.0.1, 5.0.1
  • SDK version: 24? Maybe, have no idea what google use...
  • [Android] Google Play Services version: 9.2.56 (436-124593566)

Step 3: Describe the problem:

https://gist.github.com/mtrakal/6445a6ec5f6e98ea3bd1c1600862f7fa

Steps to reproduce:

  1. Do nothing, just put your phone on desk
  2. Open logcat to track app and select No filters in AS
  3. See a lot of stuf from Google play services....

Observed Results:

A lot of time does not work sync, Hangouts never show notifications and a lot of next ****...

Expected Results:

No errors! And working authentication!

Relevant Code:

It's obfuscated, no idea...

http://stackoverflow.com/questions/35967017/gettoken-failed-status-bad-authentication-error-found-in-android-studio

mtrakal avatar Jul 19 '16 19:07 mtrakal

+1

IgorB10 avatar Nov 07 '16 08:11 IgorB10

@mtrakal what sort of problems is this causing for you? Or are you just concerned about excess logging.

samtstern avatar Nov 07 '16 15:11 samtstern

Hi @samtstern,

it was not possible to login over https://developers.google.com/identity/sign-in/android/start

callback was never returned, or something like that. It's 4 month ago... I really don't remeber it :(.

Sync was not working (google apps, Keep, Hangout, Email...)

mtrakal avatar Nov 07 '16 16:11 mtrakal

It's been a really long time since this thread was updated so I am going to close it. If you'd like to keep discussing just comment and I will re-open it. I hope your issue has been resolved since then but if not we can definitely keep working on it!

samtstern avatar Mar 07 '17 17:03 samtstern

I am facing similar issue. No idea what triggered it.

03-12 00:49:06.153 3675-3966/? W/Auth: [GoogleAuthUtil] GoogleAuthUtil 03-12 00:49:06.153 3675-3966/? W/GLSActivity: dcn: BadAuthentication at dby.a(:com.google.android.gms:1518) at dbx.a(:com.google.android.gms:914) at dbx.e(:com.google.android.gms:526) at dbw.a(:com.google.android.gms:37) at ddj.getAuthToken(:com.google.android.gms:181) at android.accounts.AbstractAccountAuthenticator$Transport.getAuthToken(AbstractAccountAuthenticator.java:214) at android.accounts.IAccountAuthenticator$Stub.onTransact(IAccountAuthenticator.java:113) at android.os.Binder.execTransact(Binder.java:453) 03-12 00:49:06.157 18474-18519/? W/PlayCommon: [4657] com.google.android.play.a.g.a(1018): Deferring log upload because couldn't retrieve auth token 03-12 00:49:06.353 18474-18522/? I/PlayCommon: [4660] com.google.android.play.a.g.e(932): Preparing logs for uploading 03-12 00:49:06.404 3675-7947/? E/Auth: [GoogleAccountDataServiceImpl] getToken() -> BAD_AUTHENTICATION. Account: ELLIDED:-1999935000, App: com.android.vending, Service: androidmarket dgn: Long live credential not available. at dgo.a(:com.google.android.gms:3101)

softwaredementor avatar Mar 12 '17 03:03 softwaredementor

Hi, I'm searching that issue. I inform you how I can resolve this error.

Check login identification in android device.(I have three ids) Remove an identification which is unsynchronized.

That's it... This error was disappeared. I hope you resolve.

gingsero avatar Mar 27 '17 07:03 gingsero

@joonhocho what sort of problems does this cause for you?

samtstern avatar May 01 '17 15:05 samtstern

@samtstern Currently I haven't tested throughly how this error really affects my app, but this error comes on my Android logging monitor every 15 seconds or so. FYI, my app uses Google Sign In to make some API calls.

joonhocho avatar May 01 '17 18:05 joonhocho

i use my phone as emulator ,when it was android 6 it didnt have any problem once i upgraded my android to 7 this message appears on logcat

francescovigot avatar Jun 01 '17 18:06 francescovigot

I am still having this issue to a lot of my users with android nougat.

amit-bst avatar Apr 16 '18 07:04 amit-bst

I'm still having this error React-native android trying to sync entries to calendar

visw227 avatar Aug 23 '18 06:08 visw227

09-06 19:44:07.135 E/Auth ( 3088): [GoogleAccountDataServiceImpl] getToken() -> BAD_AUTHENTICATION. Account: ELLIDED:1491413085, App: com.google.android.gm, Service: oauth2:https://mail.google.com/ https://www.googleapis.com/auth/gmail.ads https://www.googleapis.com/auth/gmail.readonly https://www.googleapis.com/auth/taskassist.readonly https://www.googleapis.com/auth/plus.contactphotos https://www.googleapis.com/auth/reminders https://www.googleapis.com/auth/gmail.full_access 09-06 19:44:07.135 E/Auth ( 3088): fzk: Long live credential not available.

Client side Getting same error. Sender-ID

2018-09-05 12:52:04.289 pid:29578 worker:2 error: Push Notification error : "SENDER_ID_MISMATCH"

App Server Side getting SENDER_ID_MISMATCH.

Maybe i need to enable something at console as senderID was genarated long back i.e Creation date Aug 31, 2017, 5:10:20 PM

NitzDKoder avatar Sep 06 '18 14:09 NitzDKoder

I'm seeing this in error logs too (native Android app) and it bothers me. What on earth is causing it ?

SogoGolf avatar Jan 26 '19 21:01 SogoGolf

In my case there was actual mismatch.. server was picking wrong data.. now its sorted..

NitzDKoder avatar Jan 31 '19 11:01 NitzDKoder

I'm also facing same issue. +1

ten-skv avatar Mar 25 '19 14:03 ten-skv

I'm getting same issue as described above, resulting in a complete auth soft-lock.

04-16 17:14:43.452: E/Auth(2920): [GoogleAccountDataServiceImpl] getToken() -> BAD_AUTHENTICATION. Account: ELLIDED:-1387990655, App: com.google.android.gms, Service: oauth2:https://www.googleapis.com/auth/games 04-16 17:14:43.452: E/Auth(2920): qmw: Long live credential not available. 04-16 17:14:43.452: E/Auth(2920): at gyz.c(:com.google.android.gms@[email protected] (100408-239467275):18) 04-16 17:14:43.452: E/Auth(2920): at gyz.a(:com.google.android.gms@[email protected] (100408-239467275):12) 04-16 17:14:43.452: E/Auth(2920): at gyz.b(Unknown Source:0) 04-16 17:14:43.452: E/Auth(2920): at gxk.a(:com.google.android.gms@[email protected] (100408-239467275):22) 04-16 17:14:43.452: E/Auth(2920): at isb.a(:com.google.android.gms@[email protected] (100408-239467275):7) 04-16 17:14:43.452: E/Auth(2920): at isb.a(:com.google.android.gms@[email protected] (100408-239467275):161) 04-16 17:14:43.452: E/Auth(2920): at irb.a(Unknown Source:2) 04-16 17:14:43.452: E/Auth(2920): at iqz.a(:com.google.android.gms@[email protected] (100408-239467275):17) 04-16 17:14:43.452: E/Auth(2920): at iqz.a(:com.google.android.gms@[email protected] (100408-239467275):7) 04-16 17:14:43.452: E/Auth(2920): at gtw.a(:com.google.android.gms@[email protected] (100408-239467275):33) 04-16 17:14:43.452: E/Auth(2920): at gtw.a(:com.google.android.gms@[email protected] (100408-239467275):81) 04-16 17:14:43.452: E/Auth(2920): at guf.a(:com.google.android.gms@[email protected] (100408-239467275):3) 04-16 17:14:43.452: E/Auth(2920): at gue.a(:com.google.android.gms@[email protected] (100408-239467275):2) 04-16 17:14:43.452: E/Auth(2920): at gue.c(:com.google.android.gms@[email protected] (100408-239467275):6) 04-16 17:14:43.452: E/Auth(2920): at gud.a(:com.google.android.gms@[email protected] (100408-239467275):1) 04-16 17:14:43.452: E/Auth(2920): at gwb.getAuthToken(:com.google.android.gms@[email protected] (100408-239467275):9) 04-16 17:14:43.452: E/Auth(2920): at android.accounts.AbstractAccountAuthenticator$Transport.getAuthToken(AbstractAccountAuthenticator.java:246) 04-16 17:14:43.452: E/Auth(2920): at android.accounts.IAccountAuthenticator$Stub.onTransact(IAccountAuthenticator.java:114) 04-16 17:14:43.452: E/Auth(2920): at android.os.Binder.transact(Binder.java:667) 04-16 17:14:43.452: E/Auth(2920): at duz.onTransact(:com.google.android.gms@[email protected] (100408-239467275):3) 04-16 17:14:43.452: E/Auth(2920): at android.os.Binder.execTransact(Binder.java:731)

This happens when user has signed out via PlayGamesPlatform.Instance.SignOut(), then restarts the game and tries to authenticate again.

Also, this doesn't happen on all devices, but when it happens - it happens each time. Android 6 / 8 / 9 are seems to be affected. Not tested on other devices though. Plugin version 0.9.61

VergilUa avatar Apr 12 '19 13:04 VergilUa

+1

Erraoudy avatar Dec 03 '19 14:12 Erraoudy

+1

yangga avatar Feb 20 '20 10:02 yangga

+1

RogerioDoCarmo avatar Apr 16 '20 17:04 RogerioDoCarmo

Same issue here

thiagoicarros avatar Jul 15 '20 21:07 thiagoicarros

+1

spun-Chris avatar Jul 24 '20 10:07 spun-Chris

+1

jafar-jabr avatar Aug 28 '20 16:08 jafar-jabr

Same Issue here

keyserjaya avatar Feb 04 '21 15:02 keyserjaya

Same issue

Merlinkoss avatar Aug 24 '21 11:08 Merlinkoss

+1

andrescollarino avatar Aug 27 '21 03:08 andrescollarino

Hi, I'm searching that issue. I inform you how I can resolve this error.

Check login identification in android device.(I have three ids) Remove an identification which is unsynchronized.

That's it... This error was disappeared. I hope you resolve.

How to check login indentification in device?

superdiazzz avatar Oct 27 '21 03:10 superdiazzz

any new solution for this case?

superdiazzz avatar Oct 27 '21 03:10 superdiazzz

+1 - the problem persists

Device: google pixel 5@android 12 cordova 10.0.0 - cordova-android: 10.1.1

Has someone solved ?

campagna91 avatar Mar 29 '22 14:03 campagna91

+1

FrSenpai avatar Apr 14 '22 13:04 FrSenpai

+1

manjunath-teachmint avatar Aug 10 '22 07:08 manjunath-teachmint