debbiereid / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

Sample for OAuth + Google App Engine + mobile Android app #877

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Which Google API and version (e.g. Google Calendar API version 3)?

Java environment (e.g. Java 6, Android 2.3, App Engine)?

Android 4.2

External references, such as API reference guide?

Jackson JSON serializer on the Android device.

Please provide any additional information below.

I'm working on a Java servlet that I want to run within Google App Engine. The 
second component is my own Android app that talks to my Google App using HTTPS 
and JSON. I want to use OAuth to make sure that only my Android App can access 
my Google App and that depending on the user (on the Android device) only 
specific data can be requested.

Original issue reported on code.google.com by climblev...@gmail.com on 6 May 2014 at 8:31

GoogleCodeExporter commented 9 years ago
This library is mainly designed for interacting with Google APIs. However, we 
do have another platform that fits your use-case perfectly. You might want to 
check out Google Cloud Endpoints [1], which lets you create your own API 
easily, and generate an Android client library that is specifically baked for 
your AppEngine server. It also provides oauth so the only thing you care is 
your own application logic.

Alternatively, you can use our generic auth client library [2], which 
implements oauth1 and oauth2, and an auth server like Sign in with Google [3].

For Json serialization on Android, check out Gson [4].

[1] https://cloud.google.com/appengine/docs/java/endpoints/
[2] https://code.google.com/p/google-oauth-java-client/
[3] https://developers.google.com/accounts/docs/OpenIDConnect
[4] https://code.google.com/p/google-gson/

Original comment by wonder...@google.com on 30 Dec 2014 at 3:49