PokeGOAPI-Java icon indicating copy to clipboard operation
PokeGOAPI-Java copied to clipboard

GoogleCredentialProvider

Open adobeSlash opened this issue 10 years ago • 21 comments

Since this morning I get the following error : GoogleCredentialProvider: Get user to go to:null and enter code:null

Anyone else ?

adobeSlash avatar Jul 28 '16 06:07 adobeSlash

me too , Looking for a solution

keunsy avatar Jul 28 '16 06:07 keunsy

The same error, suppose received json was incorrect. I logged some code and got this "error" : "invalid_client" I think the mistake is in the updated client_id in GoogleLogin class

spbisya avatar Jul 28 '16 06:07 spbisya

I have the same error Get user to go to:null and enter code:null

john086 avatar Jul 28 '16 07:07 john086

I try create my own google CLIENT_ID and put on the code, and it seems everything working fine.. so I guess, the main problem is on the CLIENT_ID

okynk avatar Jul 28 '16 07:07 okynk

ok i trying

john086 avatar Jul 28 '16 07:07 john086

do not change the client id, its a static value that needs to be used so the app can authenticate. You may be able to get pass the auth stage but it should not work in game.

Grover-c13 avatar Jul 28 '16 07:07 Grover-c13

that's right, when I try to go in the game, they kicked me out. lol

okynk avatar Jul 28 '16 07:07 okynk

yes i understand it, i receive response with code 401 Unauthorized and all data of authjson is null

john086 avatar Jul 28 '16 07:07 john086

I have tried another login method: go = new PokemonGo(new PtcCredentialProvider(httpClient,"[email protected]","pass"),httpClient); Then I've received Error LoginFailedException **Failed to fetch token** Any other variants to get authorized?

spbisya avatar Jul 28 '16 07:07 spbisya

Ptc is for pokemon trainer account logins and not gmail accounts.

Grover-c13 avatar Jul 28 '16 07:07 Grover-c13

GoogleAuthCredentialProvider is now implemented and tested (uses gpsoauth which pretends to act like a phone using googe player services instead of direct oauth flows) #265

Grover-c13 avatar Jul 28 '16 08:07 Grover-c13

While GoogleAutoCredentialProvider is great I guess some users would prefer to stick to the previous token based solution. Is that still taken into consideration?

[EDIT] Btw. great job, providing the fix in such a timely fashion. Thanks!

thejavatar avatar Jul 28 '16 08:07 thejavatar

Unfortunately this will also fail when 2-step verification is enabled on the Google Account.

thejavatar avatar Jul 28 '16 10:07 thejavatar

I will like to be able to use the two-step authentication... 😢

davinkevin avatar Jul 28 '16 14:07 davinkevin

Not much we can do about it right now sorry

Grover-c13 avatar Jul 28 '16 14:07 Grover-c13

Ok, thanks...

davinkevin avatar Jul 28 '16 15:07 davinkevin

From what i understood, Niantic disabled access via token that we used, i dont think there is other way to login, but we will search for them. But today, you should use the PTC login or Google via Play Services.

vmarchaud avatar Jul 28 '16 15:07 vmarchaud

#316 adds a new oauth with user interaction

Grover-c13 avatar Jul 28 '16 16:07 Grover-c13

No need to disable 2 step authentication. Create an app password for your gmail account and enter that without spaces. I just logged in using that method instead of my regular password and it works.

daf82hvfe2sfd avatar Jul 28 '16 16:07 daf82hvfe2sfd

i receive Response{protocol=h2, code=403, message=, url=https://android.clients.google.com/auth}

john086 avatar Jul 28 '16 16:07 john086