commit | fd043fe589d2d1486b6af56f44a691e819752a23 | [log] [tgz] |
---|---|---|
author | Andy Zhao <andyzhao@google.com> | Thu Jun 09 18:27:12 2022 +0000 |
committer | Cody Oss <codyoss@google.com> | Wed Jun 22 18:31:10 2022 +0000 |
tree | 1a3590cad44709d898bf3e95c882d20dd40221d5 | |
parent | d0670ef3b1ebba3a000f754b3acf1c4be6c221b0 [diff] |
authhandler: Add support for PKCE - Added new TokenSourceWithPKCE function to authhandler package. - Updated Token method to support PKCE flow, sending code challenge and challenge method on the auth-code request, and sending code verifier on the exchange request. - Updated google/default.go to support PKCE param. Change-Id: Iab895bc01407c4742706061753f5329a772068ec GitHub-Last-Rev: c1fddd28bcc4c7bd265573111808427711d7ba37 GitHub-Pull-Request: golang/oauth2#568 Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/410515 Run-TryBot: Cody Oss <codyoss@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Shin Fan <shinfan@google.com> Reviewed-by: Cody Oss <codyoss@google.com>
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.