Go OAuth2 packages

Clone this repo:


  1. 5d25da1 go.mod: update stale dependencies by Emmanuel T Odeke · 3 months ago master
  2. bf48bf1 README, endpoints: fix a typo, update README to point people at endpoints by Brad Fitzpatrick · 10 months ago
  3. eca8207 endpoints: add new package for oauth2.Endpoint values by Mark Wolfe · 10 months ago
  4. 858c2ad oauth2: turn Transport.CancelRequest into a no-op by Tim Cooper · 2 years, 4 months ago
  5. 5d9234d jira: update jira JWT subject per Atlassian's recent GDPR changes by Shaun Dunning · 11 months ago

OAuth2 for Go

Build Status GoDoc

oauth2 package contains a client implementation for OAuth 2.0 spec.


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.