Google App Engine Python Authenticated Endpoints and Android

145 views Asked by At

I'm not able to find a small example (or tutorial) of Android App (possibly with Android Studio) that use Authenticated Endpoints realized with GAE (possibly Python).

Google examples (Greetings and Tic Tac Toe) seems have some problem in my environment (token error, 404 not found, .....).

Can anyone help me? I'm going crazy...

Thank you in advance.

2

There are 2 answers

4
virtas On

Are you able to access your Endpoint from api Explorer on localhost(http://localhost:8080/_ah/api/explorer ) you can even simulate authentication there.

if API explorer is working then you need to check how you define SCOPE when getting credentials.

In my experience I had problems in following areas: 1. Generating Client IDs 2. define scoping in Endpoint API 3. Specifying correct scope in android App (server:client_id:123456789-abcdefghsadffwe.apps.googleusercontent.com";

0
Alecs On

I'm finally able to do it. I used this 2 google examples:

On the server side: https://github.com/GoogleCloudPlatform/appengine-endpoints-helloendpoints-python

On the client side: https://github.com/GoogleCloudPlatform/appengine-endpoints-helloendpoints-android

The instructions inside this pages are, in my opinion, better than the official google documentation.