From 0557e8dfb073c3667a7487b7e9c134f6bc87b9df Mon Sep 17 00:00:00 2001 From: Gowtham Sai <66207607+gowtham3105@users.noreply.github.com> Date: Tue, 8 Nov 2022 21:48:09 +0530 Subject: [PATCH] Increasing Error buffer for clock Clock is not getting synced in the VM so increased the error buffer so it doesn't affect us. --- CDC_Backend/APIs/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CDC_Backend/APIs/utils.py b/CDC_Backend/APIs/utils.py index 2f5c6fc..2da0fa3 100644 --- a/CDC_Backend/APIs/utils.py +++ b/CDC_Backend/APIs/utils.py @@ -77,7 +77,7 @@ def isAuthorized(allowed_users=None): headers = request.META if 'HTTP_AUTHORIZATION' in headers: token_id = headers['HTTP_AUTHORIZATION'][7:] - idinfo = id_token.verify_oauth2_token(token_id, requests.Request(), CLIENT_ID) + idinfo = id_token.verify_oauth2_token(token_id, requests.Request(), CLIENT_ID, clock_skew_in_seconds=60) email = idinfo[EMAIL] user = get_object_or_404(User, email=email) if user: