commit | 94c2b61903c7f00e5c7f563ae287ab42f0456222 | [log] [tgz] |
---|---|---|
author | Glenn Lewis <gmlewis@google.com> | Thu Oct 02 22:44:50 2014 -0700 |
committer | Glenn Lewis <gmlewis@google.com> | Fri Oct 31 16:04:03 2014 -0700 |
tree | 9f2fd796b60f4c7aa92063852a8691b7d258dbcb | |
parent | 68ff8650552ea890745a0d65393bdd50f680d315 [diff] |
Locally cache oauth tokens. This change is for both App Engine and Managed VMs so that these apps can scale without running into the app_identity_service quota limit due to calling appengine.AccessToken too frequently. An added benefit of caching is that calls to Google APIs will be significantly sped up due to removing the round-trip calls to the api_identity_service.
oauth2 package contains a client implementation for OAuth 2.0 spec.
go get github.com/golang/oauth2
See godoc for further documentation and examples.
Fork the repo, make changes, run the tests and open a pull request.
Before we can accept any pull requests we have to jump through a couple of legal hurdles, primarily a Contributor License Agreement (CLA):
You can sign these electronically (just scroll to the bottom). After that, we'll be able to accept your pull requests.