...
1# OAuth2 for Go
2
3[](https://pkg.go.dev/golang.org/x/oauth2)
4[](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 endpoints
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
32The main issue tracker for the oauth2 repository is located at
33https://github.com/golang/oauth2/issues.
34
35This repository uses Gerrit for code changes. To learn how to submit changes to
36this repository, see https://golang.org/doc/contribute.html. In particular:
37
38* Excluding trivial changes, all contributions should be connected to an existing issue.
39* API changes must go through the [change proposal process](https://go.dev/s/proposal-process) before they can be accepted.
40* The code owners are listed at [dev.golang.org/owners](https://dev.golang.org/owners#:~:text=x/oauth2).
View as plain text