oauth2: redesign the API

Tests and examples aren't updated yet. The tree will be broken after this,
but nobody should be using this yet anyway.

Change-Id: I0004c738f40919ab46d107c71c011c510fbc748f
Reviewed-on: https://go-review.googlesource.com/1246
Reviewed-by: Burcu Dogan <jbd@google.com>
4 files changed
tree: a55b237989009042ad675e705bae67b3e7df7ffa
  1. google/
  2. internal/
  3. jws/
  4. .travis.yml
  5. AUTHORS
  6. client_appengine.go
  7. CONTRIBUTORS
  8. example_test.go
  9. jwt.go
  10. jwt_test.go
  11. LICENSE
  12. oauth2.go
  13. oauth2_test.go
  14. README.md
  15. transport.go
  16. transport_test.go
README.md

OAuth2 for Go

Build Status

oauth2 package contains a client implementation for OAuth 2.0 spec.

Installation

go get golang.org/x/oauth2

See godoc for further documentation and examples.

Contributing

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):

  • If you are an individual writing original source code and you‘re sure you own the intellectual property, then you’ll need to sign an individual CLA.
  • If you work for a company that wants to allow you to contribute your work, then you'll need to sign a corporate CLA.

You can sign these electronically (just scroll to the bottom). After that, we'll be able to accept your pull requests.