rapidata 1.6.2__py3-none-any.whl → 1.6.4__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 rapidata might be problematic. Click here for more details.
- rapidata/service/credential_manager.py +2 -2
- rapidata/service/openapi_service.py +5 -1
- {rapidata-1.6.2.dist-info → rapidata-1.6.4.dist-info}/METADATA +1 -1
- {rapidata-1.6.2.dist-info → rapidata-1.6.4.dist-info}/RECORD +6 -6
- {rapidata-1.6.2.dist-info → rapidata-1.6.4.dist-info}/LICENSE +0 -0
- {rapidata-1.6.2.dist-info → rapidata-1.6.4.dist-info}/WHEEL +0 -0
|
@@ -182,7 +182,7 @@ class CredentialManager:
|
|
|
182
182
|
"""Create a new client using the access token."""
|
|
183
183
|
try:
|
|
184
184
|
# set the display name to the hostname
|
|
185
|
-
display_name = f"{gethostname()} -
|
|
185
|
+
display_name = f"{gethostname()} - Python API Client"
|
|
186
186
|
response = requests.post(
|
|
187
187
|
f"{self.endpoint}/Client",
|
|
188
188
|
headers={
|
|
@@ -205,7 +205,7 @@ class CredentialManager:
|
|
|
205
205
|
if not bridge_endpoint:
|
|
206
206
|
return None
|
|
207
207
|
|
|
208
|
-
auth_url = f"{self.endpoint}/connect/authorize/external?clientId=rapidata-cli&scope=openid profile email&writeKey={bridge_endpoint.write_key}"
|
|
208
|
+
auth_url = f"{self.endpoint}/connect/authorize/external?clientId=rapidata-cli&scope=openid profile email roles&writeKey={bridge_endpoint.write_key}"
|
|
209
209
|
webbrowser.open(auth_url)
|
|
210
210
|
|
|
211
211
|
access_token = self._poll_read_key(bridge_endpoint.read_key)
|
|
@@ -25,11 +25,15 @@ class OpenAPIService:
|
|
|
25
25
|
client_secret=client_secret,
|
|
26
26
|
endpoint=token_url,
|
|
27
27
|
oauth_scope=oauth_scope,
|
|
28
|
-
cert_path=cert_path
|
|
28
|
+
cert_path=cert_path,
|
|
29
29
|
)
|
|
30
30
|
client_configuration = Configuration(host=endpoint, ssl_ca_cert=cert_path)
|
|
31
31
|
self.api_client = ApiClient(configuration=client_configuration)
|
|
32
32
|
|
|
33
|
+
self.api_client.configuration.api_key["bearer"] = (
|
|
34
|
+
f"Bearer {token_manager.fetch_token().access_token}"
|
|
35
|
+
)
|
|
36
|
+
|
|
33
37
|
self._client_id = client_id
|
|
34
38
|
self._client_secret = client_secret
|
|
35
39
|
self._oauth_scope = oauth_scope
|
|
@@ -371,11 +371,11 @@ rapidata/rapidata_client/workflow/evaluation_workflow.py,sha256=IBQoVFxOaeCDIBfa
|
|
|
371
371
|
rapidata/rapidata_client/workflow/free_text_workflow.py,sha256=VaypoG3yKgsbtVyqxta3W28eDwdnGebCy2xDWPCBMyo,1566
|
|
372
372
|
rapidata/rapidata_client/workflow/transcription_workflow.py,sha256=_KDtGCdRhauJm3jQHpwhY-Hq79CLg5I8q2RgOz5lo1g,1404
|
|
373
373
|
rapidata/service/__init__.py,sha256=s9bS1AJZaWIhLtJX_ZA40_CK39rAAkwdAmymTMbeWl4,68
|
|
374
|
-
rapidata/service/credential_manager.py,sha256=
|
|
374
|
+
rapidata/service/credential_manager.py,sha256=I0BvNsq7a2zJhPqXa-ESot9037cTu5TaC2iYJjWIRv0,7943
|
|
375
375
|
rapidata/service/local_file_service.py,sha256=pgorvlWcx52Uh3cEG6VrdMK_t__7dacQ_5AnfY14BW8,877
|
|
376
|
-
rapidata/service/openapi_service.py,sha256=
|
|
376
|
+
rapidata/service/openapi_service.py,sha256=XNTCCBsC-3GwB2TxZ5XQaqzRnaViSIZ3yIWeVl9J20U,2472
|
|
377
377
|
rapidata/service/token_manager.py,sha256=JZ5YbR5Di8dO3H4kK11d0kzWlrXxjgCmeNkHA4AapCM,6425
|
|
378
|
-
rapidata-1.6.
|
|
379
|
-
rapidata-1.6.
|
|
380
|
-
rapidata-1.6.
|
|
381
|
-
rapidata-1.6.
|
|
378
|
+
rapidata-1.6.4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
379
|
+
rapidata-1.6.4.dist-info/METADATA,sha256=4ZrSMPGIdOa00Bw1wagYULKBk1PoKKbz8gIuDN4ME8Q,1056
|
|
380
|
+
rapidata-1.6.4.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
381
|
+
rapidata-1.6.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|