Find a file
Gopher Robot 4d954e69a8 all: upgrade go directive to at least 1.25.0 [generated]
By now Go 1.26.0 has been released, and Go 1.24 is no longer supported
per the Go Release Policy (see https://go.dev/doc/devel/release#policy).

See go.dev/doc/godebug#go-125 for GODEBUG changes relevant to Go 1.25.

For golang/go#69095.

[git-generate]
(cd . && go get go@1.25.0 && go mod tidy)

Change-Id: Ifd87f1cd8d96659db781537c2e424568a8384410
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/744560
Reviewed-by: Junyang Shao <shaojunyang@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Gopher Robot <gobot@golang.org>
2026-02-11 11:14:10 -08:00
amazon amazon: add amazon endpoints 2017-04-12 23:27:59 +00:00
authhandler all: modernize with doc links and any 2025-04-23 10:33:59 -07:00
bitbucket bitbucket: add end points 2015-09-17 03:41:47 +00:00
cern cern: add CERN OAuth endpoint 2018-05-29 17:07:32 +00:00
clientcredentials all: fix some comments 2025-10-23 07:32:39 -07:00
endpoints endpoints: fix %q verb use with wrong type 2025-12-01 09:43:47 -08:00
facebook internal: remove fallback parsing for expires_in 2019-03-19 18:23:50 +00:00
fitbit fitbit: add Fitbit API endpoints 2016-03-23 03:46:10 +00:00
foursquare oauth2: add Foursquare's Endpoint 2016-10-25 20:08:26 +00:00
github oauth2: support device flow 2023-09-06 16:35:20 +00:00
gitlab endpoints: add GitLab DeviceAuthURL 2024-08-06 16:10:29 +00:00
google google: add safer credentials JSON loading options. 2026-01-12 11:50:33 -08:00
heroku heroku: Add Heroku's endpoints 2016-08-23 22:06:57 +00:00
hipchat hipchat: Generate Config for Connect integrations 2016-04-28 20:45:44 +00:00
instagram instagram: add Instagram endpoints 2018-07-24 15:53:51 +00:00
internal internal: include clientID in auth style cache key 2025-04-24 16:34:53 -07:00
jira all: make use of oauth.Token.ExpiresIn 2025-04-17 01:27:37 -07:00
jws all: modernize with doc links and any 2025-04-23 10:33:59 -07:00
jwt all: modernize with doc links and any 2025-04-23 10:33:59 -07:00
kakao kakao: Add new endpoint of Kakao 2018-05-28 19:57:36 +00:00
linkedin oauth2: auto-detect auth style by default, add Endpoint.AuthStyle 2019-02-11 18:49:51 +00:00
mailchimp mailchimp: add MailChimp provider 2018-02-28 17:30:56 +00:00
mailru mailru: add Mail.Ru OAuth2 endpoint 2017-12-15 22:01:12 +00:00
mediamath mediamath: add MediaMath endpoints 2016-08-17 16:31:01 +00:00
microsoft microsoft: added DeviceAuthURL to AzureADEndpoint 2024-04-05 22:25:10 +00:00
nokiahealth nokiehealth: add endpoint for Nokia Health Mate 2018-08-21 21:23:33 +00:00
odnoklassniki all: change copyright to 'Go Authors' 2015-10-22 04:14:42 +00:00
paypal all: change copyright to 'Go Authors' 2015-10-22 04:14:42 +00:00
slack slack: new package with Slack's endpoints 2016-02-17 21:10:11 +00:00
spotify spotify: add Spotify endpoints 2018-01-04 23:00:36 +00:00
stackoverflow stackoverflow: add stackoverflow oauth2 endpoints. 2018-06-20 17:54:06 +00:00
twitch twitch: update to new endpoint 2018-05-21 19:16:39 +00:00
uber uber: Add Uber API endpoints 2016-08-10 17:35:16 +00:00
vk all: change copyright to 'Go Authors' 2015-10-22 04:14:42 +00:00
yahoo yahoo: add Yahoo OAuth2 endpoint 2017-12-15 00:49:36 +00:00
yandex oauth2: add Yandex endpoint 2017-02-27 16:23:13 +00:00
.travis.yml travis: always build against tip 2016-05-20 18:58:28 +00:00
CONTRIBUTING.md CONTRIBUTING.md: remove note about not accepting Pull Requests 2018-03-14 18:02:39 +00:00
deviceauth.go x/oauth2: populate RetrieveError from DeviceAuth 2025-10-21 13:30:32 -07:00
deviceauth_test.go x/oauth2: populate RetrieveError from DeviceAuth 2025-10-21 13:30:32 -07:00
example_test.go oauth2: support PKCE 2023-09-07 17:49:42 +00:00
go.mod all: upgrade go directive to at least 1.25.0 [generated] 2026-02-11 11:14:10 -08:00
go.sum oauth2: drop dependency on go-cmp 2025-04-23 10:24:59 -07:00
LICENSE LICENSE: update per Google Legal 2024-07-16 16:09:07 +00:00
oauth2.go all: fix some comments 2025-10-23 07:32:39 -07:00
oauth2_test.go x/oauth2: populate RetrieveError from DeviceAuth 2025-10-21 13:30:32 -07:00
pkce.go all: fix some comments 2025-10-23 07:32:39 -07:00
README.md README: don't recommend go get 2024-11-01 18:29:12 +00:00
token.go all: fix some comments 2025-10-23 07:32:39 -07:00
token_test.go all: modernize with doc links and any 2025-04-23 10:33:59 -07:00
transport.go all: fix some comments 2025-10-23 07:32:39 -07:00
transport_test.go oauth2: remove unneeded TokenSource implementation in transport test 2025-03-03 12:45:23 -08:00

OAuth2 for Go

Go Reference Build Status

oauth2 package contains a client implementation for OAuth 2.0 spec.

See pkg.go.dev for further documentation and examples.

Policy for new endpoints

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.

Report Issues / Send Patches

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

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

The git repository is https://go.googlesource.com/oauth2.

Note:

  • Excluding trivial changes, all contributions should be connected to an existing issue.
  • API changes must go through the change proposal process before they can be accepted.
  • The code owners are listed at dev.golang.org/owners.