Increasing Error buffer for clock
Clock is not getting synced in the VM so increased the error buffer so it doesn't affect us.
This commit is contained in:
parent
36a2f8c200
commit
0557e8dfb0
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue