Skip to content

Commit bcbe828

Browse files
committed
Merge remote-tracking branch 'origin/main' into property-retry
2 parents 984580f + 80639b4 commit bcbe828

File tree

5 files changed

+19
-8
lines changed

5 files changed

+19
-8
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@
44

55
[1]: https://pypi.org/project/google-auth/#history
66

7+
## [2.11.1](https://github.com/googleapis/google-auth-library-python/compare/v2.11.0...v2.11.1) (2022-09-20)
8+
9+
10+
### Bug Fixes
11+
12+
* Fix socket leak in impersonated_credentials ([#1123](https://github.com/googleapis/google-auth-library-python/issues/1123)) ([b1eb467](https://github.com/googleapis/google-auth-library-python/commit/b1eb467f50f0c080e89a122426061b28f0be0567)), closes [#1122](https://github.com/googleapis/google-auth-library-python/issues/1122)
13+
* Make pluggable auth tests work in all environments ([#1114](https://github.com/googleapis/google-auth-library-python/issues/1114)) ([bb5c979](https://github.com/googleapis/google-auth-library-python/commit/bb5c9791c64e2472a90ba7191f79f4c5fedb2538))
14+
* Skip oauth2client adapter tests if oauth2client is not installed ([#1132](https://github.com/googleapis/google-auth-library-python/issues/1132)) ([d15092f](https://github.com/googleapis/google-auth-library-python/commit/d15092ff8b66b3039641d482a0debafde4ba0077))
15+
* Update token refresh threshold from 20 seconds to 5 minutes ([#1146](https://github.com/googleapis/google-auth-library-python/issues/1146)) ([261a561](https://github.com/googleapis/google-auth-library-python/commit/261a56138fba33ff7d898ab5907a6098125fefef))
16+
17+
18+
### Documentation
19+
20+
* **samples:** Add auth samples and tests ([#1102](https://github.com/googleapis/google-auth-library-python/issues/1102)) ([ac87520](https://github.com/googleapis/google-auth-library-python/commit/ac875201bc8ba5d638a9eafcd3ccfdeb73a2f0ec))
21+
722
## [2.11.0](https://github.com/googleapis/google-auth-library-python/compare/v2.10.0...v2.11.0) (2022-08-18)
823

924

google/auth/_helpers.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@
2323
from six.moves import urllib
2424

2525

26-
# Token server doesn't provide a new a token when doing refresh unless the
27-
# token is expiring within 30 seconds, so refresh threshold should not be
28-
# more than 30 seconds. Otherwise auth lib will send tons of refresh requests
29-
# until 30 seconds before the expiration, and cause a spike of CPU usage.
30-
REFRESH_THRESHOLD = datetime.timedelta(seconds=20)
26+
REFRESH_THRESHOLD = datetime.timedelta(seconds=300)
3127

3228

3329
def copy_docstring(source_class):

google/auth/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
__version__ = "2.11.0"
15+
__version__ = "2.11.1"

google/oauth2/_reauth_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ async def refresh_grant(
307307
):
308308
if not enable_reauth_refresh:
309309
raise exceptions.RefreshError(
310-
"Reauthentication is needed. Please run `gcloud auth login --update-adc` to reauthenticate."
310+
"Reauthentication is needed. Please run `gcloud auth application-default login` to reauthenticate."
311311
)
312312

313313
rapt_token = await get_rapt_token(

google/oauth2/reauth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def refresh_grant(
332332
):
333333
if not enable_reauth_refresh:
334334
raise exceptions.RefreshError(
335-
"Reauthentication is needed. Please run `gcloud auth login --update-adc` to reauthenticate."
335+
"Reauthentication is needed. Please run `gcloud auth application-default login` to reauthenticate."
336336
)
337337

338338
rapt_token = get_rapt_token(

0 commit comments

Comments
 (0)