CHJani / google-api-java-client

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

Asserting Identity on Google App Engine to Google APIs #321

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
External references, such as a standards document, or specification?

http://code.google.com/appengine/docs/java/appidentity/overview.html#Asserting_I
dentity_to_Google_APIs

http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/appi
dentity/AppIdentityService.html#getAccessToken(java.lang.Iterable)

http://javadoc.google-api-java-client.googlecode.com/hg/1.5.0-beta/com/google/ap
i/client/googleapis/extensions/appengine/auth/helpers/GoogleAppAssertionFlow.htm
l

Java environments (e.g. Java 6, Android 2.3, App Engine, or All)?

App Engine, starting with 1.5.3

Please describe the feature requested.

In SDK 1.5.3, App Engine added a getAccessToken method that given the OAuth 2.0 
scope(s) gives a memcached access token.  We should switch our implementation 
of GoogleAppAssertionFlow to use that instead.  What I don't see spelled out in 
their documentation is what you are supposed to do when the access token 
expires, so please investigate that.

Original issue reported on code.google.com by yan...@google.com on 14 Oct 2011 at 1:02

GoogleCodeExporter commented 9 years ago
They automatically refresh the access token, it is always guaranteed fresh.  
The best way to use this code is to call "getAccessToken()" whenever you need 
an access token.

Original comment by bea...@google.com on 14 Oct 2011 at 5:13

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 29 Feb 2012 at 1:16

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 12 Mar 2012 at 8:35

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 12 Mar 2012 at 8:35