From 7d50c133540b1ef2c906c8d9be5fcbb395be8b19 Mon Sep 17 00:00:00 2001 From: Max Wittig Date: Mon, 8 Apr 2024 10:31:00 +0200 Subject: [PATCH] fix(provider): extend timeout when getting user info --- oidc/provider.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/oidc/provider.py b/oidc/provider.py index 749dec6..e270113 100644 --- a/oidc/provider.py +++ b/oidc/provider.py @@ -93,7 +93,7 @@ def get_user_info(self, bearer_token): r = requests.get( endpoint + "?schema=openid", headers={"Authorization": bearer_auth}, - timeout=2.0, + timeout=20.0, ) if r.status_code in retry_codes: wait_time = 2**retry * 0.1 diff --git a/pyproject.toml b/pyproject.toml index f61bf9a..4a74416 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "sentry-auth-oidc" -version = "8.0.0" +version = "8.1.0" description = "OpenID Connect authentication provider for Sentry" authors = [ "Max Wittig ",