Skip to content

Commit 5af3922

Browse files
author
William Astorga
committed
fix: add extra checks for insecure_http_calls_in_python
1 parent 0825546 commit 5af3922

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Splunk-TA-cisco-dnacenter/bin/cisco_dnac_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ def authentication_api(self, username, password):
189189
"""
190190
temp_url = "/dna/system/api/v1/auth/token"
191191
self._endpoint_url = urllib.parse.urljoin(self._base_url, temp_url)
192+
assert self._endpoint_url.startswith("https"), "URL must be HTTPS"
192193

193194
# API request
194195
response = requests.post(

0 commit comments

Comments
 (0)