Skip to content

Commit 17259db

Browse files
committed
fix(oidc): got an unexpected keyword argument timeout
1 parent 10e6854 commit 17259db

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

rootfs/api/backend.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,12 @@ class DryccOIDC(OpenIdConnectAuth):
3333
]
3434

3535
def __init__(self, *args, **kwargs):
36-
self.timeout = 3 # request timeout
3736
super().__init__(*args, **kwargs)
3837

3938
@social_cache(ttl=86400)
4039
def oidc_config(self):
4140
return self.get_json(
42-
self.OIDC_ENDPOINT + '/.well-known/openid-configuration/',
43-
timeout=self.timeout
41+
self.OIDC_ENDPOINT + '/.well-known/openid-configuration/'
4442
)
4543

4644
def get_user_data(self, access_token):
@@ -51,7 +49,6 @@ def get_user_data(self, access_token):
5149
headers={
5250
'authorization': 'Bearer ' + access_token
5351
},
54-
timeout=self.timeout,
5552
)
5653
return {
5754
'id': response.get('id'),
@@ -73,7 +70,6 @@ def refresh_token(self, refresh_token):
7370
'client_id': settings.SOCIAL_AUTH_DRYCC_KEY,
7471
'refresh_token': refresh_token,
7572
},
76-
timeout=self.timeout,
7773
)
7874

7975

0 commit comments

Comments
 (0)