1# OAuth2 for Go
2
3[![Go Reference](https://pkg.go.dev/badge/golang.org/x/oauth2.svg)](https://pkg.go.dev/golang.org/x/oauth2)
4[![Build Status](https://travis-ci.org/golang/oauth2.svg?branch=master)](https://travis-ci.org/golang/oauth2)
5
6oauth2 package contains a client implementation for OAuth 2.0 spec.
7
8## Installation
9
10~~~~
11go get golang.org/x/oauth2
12~~~~
13
14Or you can manually git clone the repository to
15`$(go env GOPATH)/src/golang.org/x/oauth2`.
16
17See pkg.go.dev for further documentation and examples.
18
19* [pkg.go.dev/golang.org/x/oauth2](https://pkg.go.dev/golang.org/x/oauth2)
20* [pkg.go.dev/golang.org/x/oauth2/google](https://pkg.go.dev/golang.org/x/oauth2/google)
21
22## Policy for new packages
23
24We no longer accept new provider-specific packages in this repo if all
25they do is add a single endpoint variable. If you just want to add a
26single endpoint, add it to the
27[pkg.go.dev/golang.org/x/oauth2/endpoints](https://pkg.go.dev/golang.org/x/oauth2/endpoints)
28package.
29
30## Report Issues / Send Patches
31
32This repository uses Gerrit for code changes. To learn how to submit changes to
33this repository, see https://golang.org/doc/contribute.html.
34
35The main issue tracker for the oauth2 repository is located at
36https://github.com/golang/oauth2/issues.
37