commit | 1e7f32936487c0d8052d63fd32d84f4c1121986e | [log] [tgz] |
---|---|---|
author | Roland Shoemaker <roland@golang.org> | Mon Mar 27 14:21:45 2023 -0700 |
committer | Roland Shoemaker <roland@golang.org> | Tue Mar 28 18:36:12 2023 +0000 |
tree | 08f21f8103662e2e4742e9576f5c6a6c0e3e73fd | |
parent | 86850e07236e6a4f59e810fb16229fdebb07a119 [diff] |
oauth2: add ReuseTokenSourceWithExpiry Add a constructor which allows for the configuration of the expiryDelta buffer. Due to the construction of reuseTokenSource and Token we need to store the new delta in both places, so the behavior of Valid is consistent regardless of where it is called from. Fixes #623 Change-Id: I89f9c206a9cc16bb473b8c619605c8410a82fff0 Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/479676 Run-TryBot: Roland Shoemaker <roland@golang.org> Reviewed-by: Cody Oss <codyoss@google.com> TryBot-Result: Gopher Robot <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.
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://golang.org/doc/contribute.html. In particular: