OAuth 2 between gae apps

51 views
Skip to first unread message

Guillermo Pi Dote

unread,
Feb 24, 2015, 9:48:31 AM2/24/15
to google-a...@googlegroups.com
Hi.

I have two apps in GAE. 
One app is a REST services that consume data from Google Api (in this case Reports). I have the pk12 file and services account for connect to Google with OAuth2 through services flow.

The second app consume a url from REST App but I need change the access from OAuth1 to OAuth2. 
Can I use GoogleCredential or AppIdentityCredential?  What SCOPE can use if I use this crendentials?

Thanks.

Alex Martelli

unread,
Feb 24, 2015, 10:04:20 AM2/24/15
to google-a...@googlegroups.com
The recommendation at https://cloud.google.com/appengine/docs/java/appidentity/#Java_Asserting_identity_to_other_App_Engine_apps for "Asserting identity to other App Engine apps" is to "use the request header X-Appengine-Inbound-Appid" (requiring only a plain fetch with no redirects following on one side, an explicit check on the header on the other).  The app identity service is only recommended for asserting identity to Google APIs, not to other GAE apps.

Alex


--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/b75b27da-8eb8-4ad8-a7c7-d4659db6a756%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages