commit | 4abfd87339731bbbde108264890e9636453bf0f9 | [log] [tgz] |
---|---|---|
author | Cody Oss <codyoss@google.com> | Tue Mar 28 15:45:12 2023 -0500 |
committer | Roland Shoemaker <roland@golang.org> | Wed Mar 29 20:00:17 2023 +0000 |
tree | 0d728d5fcfad62265b09af5568d7291caac9f1a2 | |
parent | 1e7f32936487c0d8052d63fd32d84f4c1121986e [diff] |
google: add CredentialsParams.EarlyTokenRefresh This option is a followup to to cl/479676 where an option was added to configure the preemptive token refresh. Currently the option in this package is only being used by compute credentials. In the future we can support more/all auth flows but that would require a lot of new surfaces to be added. Compute credentials are currently the only case where we are expirencing the need to configure this setting. Change-Id: Ib78ca4beec44d0fe030ae81e84c8fcc4924793ba Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/479956 Run-TryBot: Cody Oss <codyoss@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Roland Shoemaker <roland@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: