commit | 8b1d76fa042330bf6fcfbda4a3da5f69d1b64f5f | [log] [tgz] |
---|---|---|
author | Cody Oss <codyoss@google.com> | Wed Jan 13 08:23:33 2021 -0700 |
committer | Cody Oss <codyoss@google.com> | Wed Jan 13 16:05:01 2021 +0000 |
tree | 7fdd108d350025a761fb86d3816df9f635be24b4 | |
parent | 01de73cf58bdca33ccc181d1bd6d63ebcf21ccca [diff] |
google: restore 1.11 compatibility NewRequestWithContext requires 1.13. As this is just a convenience we should try to retatin the 1.11 compatibility by using NewRequest then calling WithContext instead. Change-Id: I6208a92061b208a119fdf04fd561a3e4d22bc547 Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/283535 Reviewed-by: Tyler Bui-Palsulich <tbp@google.com> Trust: Tyler Bui-Palsulich <tbp@google.com> Trust: Cody Oss <codyoss@google.com> Run-TryBot: Tyler Bui-Palsulich <tbp@google.com> TryBot-Result: Go Bot <gobot@golang.org>
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 pkg.go.dev for further documentation and examples.
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 pkg.go.dev/golang.org/x/oauth2/endpoints package.
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.