Granting access to Google on my app

80 views
Skip to first unread message

Andrea Ferro

unread,
May 20, 2020, 1:21:35 PM5/20/20
to Google App Engine
Hello, I'm developing a small game in Android using Java and to link the players I'm using Google accounts.
The problem is that I've added the client ID OAuth 2.0 on my Google Project but like this I can only access on my Google account only in my smartphone, while my friends
get an error: ApiException, signInResult:failed code=10 (in the handleSignInResult method I use to process the Task<GoogleSignInAccount>, in which I do task.getResult(ApiException.class).
What do I have to do to grant other users access with Google?

George (Cloud Platform Support)

unread,
May 20, 2020, 3:06:24 PM5/20/20
to Google App Engine
Hello Andrea, 

Authentication success depends on how you include credentials in your Java client's constructor. If you don't specify credentials in the client's constructor, the client looks for credentials in the app's environment. In your particular case, this would be your friend's smartphone. You may consider checking the "Setting Up Access Control" page for related detail. 

On the same page, information in the Granting access to team members sub-chapter may prove useful, if your app needs to handle user-specific data. 

This discussion group is oriented more towards general opinions, trends, and issues of general nature touching App Engine. For coding and programming architecture, as well as coding a Java client, you may be better served in dedicated forums such as stackoverflow, where experienced programmers are within reach and ready to help. 

Andrea Ferro

unread,
May 21, 2020, 7:47:55 AM5/21/20
to Google App Engine
Hello,
thanks for the answer. I still can't manage to make it work, is it possible to have a live chat with the support or something similar in order to describe the problem and have specific help? I think it's just something simple I can't make work and like that I would solve it in a few minutes.

Olu

unread,
May 21, 2020, 3:45:55 PM5/21/20
to Google App Engine
Hello, Andrea

Indeed, it would be best to have this issue reviewed with a GCP Support Engineer. For better troubleshooting of the issue, which may involve reviewing configurations on your Project, you can contact a GCP Support engineer through this link[1]. 

I believe a Live chat is likewise possible, however, that depends on some factors like the GCP Support package that you have and the type of GCP product. Particularly, this is available for Free trial support[2 -- See the NOTE]

This way a GCP Support engineer would be able to work closely with you, reviewing your application configuration and determine exactly what may be the cause of the issue you observe.

Reply all
Reply to author
Forward
0 new messages