From 02c6738dbaaf0cc5237d82e229985bd5fcd75966 Mon Sep 17 00:00:00 2001 From: Alex Topal Date: Wed, 13 Sep 2017 02:12:45 +0200 Subject: [PATCH] Bug fix: impossible to use RedisManagedJWTAuth (closes #231) Fixes __init__() called from RedisManagedOAuth2Mixin with extra argument (refresh_lock=), which is absent in parent class. --- boxsdk/auth/jwt_auth.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boxsdk/auth/jwt_auth.py b/boxsdk/auth/jwt_auth.py index 3d95cca64..6de1bcb29 100644 --- a/boxsdk/auth/jwt_auth.py +++ b/boxsdk/auth/jwt_auth.py @@ -34,6 +34,7 @@ def __init__( access_token=None, network_layer=None, jwt_algorithm='RS256', + refresh_lock=None, ): """ :param client_id: @@ -94,6 +95,7 @@ def __init__( access_token=access_token, refresh_token=None, network_layer=network_layer, + refresh_lock=refresh_lock, ) with open(rsa_private_key_file_sys_path, 'rb') as key_file: self._rsa_private_key = serialization.load_pem_private_key(