Skip to content

Commit a5067f2

Browse files
committed
typo + visibility condition between auth type and ssl check ignore
1 parent 254fd21 commit a5067f2

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

custom-recipes/api-connect/recipe.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
},
3535
{
3636
"name": "auth_type",
37-
"label": "Authentation type",
37+
"label": "Authentication type",
3838
"description": "",
3939
"type": "SELECT",
4040
"defaultValue": null,
@@ -281,6 +281,7 @@
281281
"name": "ignore_ssl_check",
282282
"label": "Ignore SSL check",
283283
"type": "BOOLEAN",
284+
"visibilityCondition": "model.auth_type!='secure_oauth' && model.auth_type!='secure_basic'",
284285
"defaultValue": false
285286
},
286287
{

python-connectors/api-connect_dataset/connector.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
{
1515
"name": "auth_type",
16-
"label": "Authentation type",
16+
"label": "Authentication type",
1717
"description": "",
1818
"type": "SELECT",
1919
"defaultValue": null,
@@ -227,6 +227,7 @@
227227
"name": "ignore_ssl_check",
228228
"label": "Ignore SSL check",
229229
"type": "BOOLEAN",
230+
"visibilityCondition": "model.auth_type!='secure_oauth' && model.auth_type!='secure_basic'",
230231
"defaultValue": false
231232
},
232233
{

python-lib/rest_api_client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ def __init__(self, credential, secure_credentials, endpoint, custom_key_values={
5151
self.extraction_key = endpoint.get("extraction_key", None)
5252

5353
self.requests_kwargs.update({"headers": self.endpoint_headers})
54-
self.ignore_ssl_check = endpoint.get("ignore_ssl_check", False)
54+
if secure_credentials:
55+
self.ignore_ssl_check = False
56+
else:
57+
self.ignore_ssl_check = endpoint.get("ignore_ssl_check", False)
5558
if self.ignore_ssl_check:
5659
self.requests_kwargs.update({"verify": False})
5760
else:

0 commit comments

Comments
 (0)