Go OAuth2 packages

Clone this repo:

Branches

  1. 0b49973 google: add ExchangeToken() to run STS exchanges. by Patrick Jones · 5 hours ago master
  2. 9fd6049 google: add utilities supporting upcoming oauth2 functionality by Patrick Jones · 4 weeks ago
  3. 5d25da1 go.mod: update stale dependencies by Emmanuel T Odeke · 4 months ago
  4. bf48bf1 README, endpoints: fix a typo, update README to point people at endpoints by Brad Fitzpatrick · 11 months ago
  5. eca8207 endpoints: add new package for oauth2.Endpoint values by Mark Wolfe · 11 months ago

OAuth2 for Go

Build Status GoDoc

oauth2 package contains a client implementation for OAuth 2.0 spec.

Installation

go get golang.org/x/oauth2

Or you can manually git clone the repository to $(go env GOPATH)/src/golang.org/x/oauth2.

See godoc for further documentation and examples.

Policy for new packages

We no longer accept new provider-specific packages in this repo if all they do is add a single endpoint variable. If you just want to add a single endpoint, add it to the godoc.org/golang.org/x/oauth2/endpoints package.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the oauth2 repository is located at https://github.com/golang/oauth2/issues.