arthur-client 1.4.1502__py3-none-any.whl → 1.4.1504__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of arthur-client might be problematic. Click here for more details.
- arthur_client/auth/device_authorizer.py +2 -1
- arthur_client/auth/oauth_api_config.py +2 -0
- arthur_client/auth/session.py +2 -0
- {arthur_client-1.4.1502.dist-info → arthur_client-1.4.1504.dist-info}/METADATA +1 -1
- {arthur_client-1.4.1502.dist-info → arthur_client-1.4.1504.dist-info}/RECORD +6 -6
- {arthur_client-1.4.1502.dist-info → arthur_client-1.4.1504.dist-info}/WHEEL +0 -0
|
@@ -28,11 +28,12 @@ class DeviceAuthorizer:
|
|
|
28
28
|
This class implements the OAuth2 Device Authorization Flow to generate a Session object with the Arthur API.
|
|
29
29
|
"""
|
|
30
30
|
|
|
31
|
-
def __init__(self, arthur_host: str, client_id=CLIENT_ID):
|
|
31
|
+
def __init__(self, arthur_host: str, client_id=CLIENT_ID, verify_ssl: bool = True):
|
|
32
32
|
self.arthur_host = arthur_host
|
|
33
33
|
self.metadata = ArthurOIDCMetadata(arthur_host)
|
|
34
34
|
self.client_id = client_id
|
|
35
35
|
self._oauth_sess = OAuth2Session(client_id=self.client_id, scope=OPENID_SCOPE)
|
|
36
|
+
self._oauth_sess.session.verify = verify_ssl
|
|
36
37
|
self._browser_open_f = webbrowser.open
|
|
37
38
|
|
|
38
39
|
def authorize(self) -> ArthurAPISession:
|
|
@@ -19,6 +19,7 @@ class ArthurOAuthSessionAPIConfiguration(Configuration):
|
|
|
19
19
|
self,
|
|
20
20
|
session: ArthurAPISession,
|
|
21
21
|
leeway_seconds: int = 30,
|
|
22
|
+
verify_ssl: bool = True,
|
|
22
23
|
*args: Any,
|
|
23
24
|
**kwargs: Any,
|
|
24
25
|
) -> None:
|
|
@@ -26,6 +27,7 @@ class ArthurOAuthSessionAPIConfiguration(Configuration):
|
|
|
26
27
|
super().__init__(*args, host=host, **kwargs)
|
|
27
28
|
self.session = session
|
|
28
29
|
self.leeway_seconds = leeway_seconds
|
|
30
|
+
self.verify_ssl = verify_ssl
|
|
29
31
|
self.logger = logging.getLogger(__name__)
|
|
30
32
|
|
|
31
33
|
@property
|
arthur_client/auth/session.py
CHANGED
|
@@ -60,6 +60,7 @@ class ArthurClientCredentialsAPISession(ArthurAPISession):
|
|
|
60
60
|
client_id: str,
|
|
61
61
|
client_secret: str,
|
|
62
62
|
metadata: ArthurOIDCMetadata,
|
|
63
|
+
verify: bool = True,
|
|
63
64
|
):
|
|
64
65
|
self.client_id = client_id
|
|
65
66
|
self.client_secret = client_secret
|
|
@@ -68,6 +69,7 @@ class ArthurClientCredentialsAPISession(ArthurAPISession):
|
|
|
68
69
|
client_secret=self.client_secret,
|
|
69
70
|
scope=OPENID_SCOPE,
|
|
70
71
|
)
|
|
72
|
+
self._oauth_session.session.verify = verify
|
|
71
73
|
self._metadata = metadata
|
|
72
74
|
self._lock = threading.Lock()
|
|
73
75
|
|
|
@@ -984,10 +984,10 @@ arthur_client/api_bindings/test/test_workspaces_v1_api.py,sha256=z9bGcDGQyv_iSR3
|
|
|
984
984
|
arthur_client/api_bindings_README.md,sha256=8WAXmSdc6VF7FtCfEdFyiEB7H-Q35j3k8MF1D5uAVLw,54804
|
|
985
985
|
arthur_client/auth/__init__.py,sha256=f4XqpGe9d1V0xlocq2JlNtd8l_GUoUOy6_1yTMCBsc0,210
|
|
986
986
|
arthur_client/auth/constants.py,sha256=lIEdf1UujvAZhueQ8WZGjd3ErcJlCmrXRxjRhTRNb18,38
|
|
987
|
-
arthur_client/auth/device_authorizer.py,sha256=
|
|
987
|
+
arthur_client/auth/device_authorizer.py,sha256=j6cMQEDhtokZqTOqWKocT-8HAgXXB4nqq_H1wspipdc,2676
|
|
988
988
|
arthur_client/auth/discovery.py,sha256=hR0MglzRWHdwyi72If5hTnjO50fDJhquP_DD7OzjIQQ,1188
|
|
989
|
-
arthur_client/auth/oauth_api_config.py,sha256=
|
|
990
|
-
arthur_client/auth/session.py,sha256=
|
|
991
|
-
arthur_client-1.4.
|
|
992
|
-
arthur_client-1.4.
|
|
993
|
-
arthur_client-1.4.
|
|
989
|
+
arthur_client/auth/oauth_api_config.py,sha256=K4UiyWm3ioBkARouNaXS5Iy8dI3YgkvSfORe-nyeKug,1418
|
|
990
|
+
arthur_client/auth/session.py,sha256=b8AXauCkGn4H-gFzP8Y3cCIwuxGuygLQNB4tGi1Y8-4,2730
|
|
991
|
+
arthur_client-1.4.1504.dist-info/METADATA,sha256=5wuXsLEdwQ_My_9usA0MpWjMqy2if5dCPd5krh79EDI,1730
|
|
992
|
+
arthur_client-1.4.1504.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
993
|
+
arthur_client-1.4.1504.dist-info/RECORD,,
|
|
File without changes
|