Issue 877 in google-api-java-client: Sample for OAuth + Google App Engine + mobile Android app

0 views
Skip to first unread message

google-api-...@googlecode.com

unread,
May 6, 2014, 4:31:51 AM5/6/14
to google-api-jav...@googlegroups.com
Status: New
Owner: wonder...@google.com
Labels: Type-Sample Priority-Medium

New issue 877 by climblev...@gmail.com: Sample for OAuth + Google App
Engine + mobile Android app
http://code.google.com/p/google-api-java-client/issues/detail?id=877

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.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

google-api-...@googlecode.com

unread,
Dec 30, 2014, 10:49:59 AM12/30/14
to google-api-jav...@googlegroups.com
Updates:
Status: Done

Comment #1 on issue 877 by wonder...@google.com: Sample for OAuth + Google
App Engine + mobile Android app
https://code.google.com/p/google-api-java-client/issues/detail?id=877

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/
Reply all
Reply to author
Forward
0 new messages