commit | fd043fe589d2d1486b6af56f44a691e819752a23 | [log] [tgz] |
---|---|---|
author | Andy Zhao <[email protected]> | Thu Jun 09 18:27:12 2022 +0000 |
committer | Cody Oss <[email protected]> | 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 <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Shin Fan <[email protected]> Reviewed-by: Cody Oss <[email protected]>
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.