Skip to content

Commit 0d2b8c3

Browse files
2FakeShutgun
andauthored
Opt out of SSL verify (#54)
* opt out of ssl verify * Fix type hint * Update changelog --------- Co-authored-by: Guido Schmitz <guido.schmitz@fedaix.de>
1 parent 2886d14 commit 0d2b8c3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [2.4.0] - 2023/12/01
8+
9+
### Added
10+
11+
- Opt out from TLS certificate validation or provide an own certificates by using the verify parameter
12+
713
## [2.3.3] - 2023/09/12
814

915
### Fixed

adaptavist/adaptavist.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ class Adaptavist:
2121
.. seealso:: https://docs.adaptavist.io/tm4j/server/api
2222
"""
2323

24-
def __init__(self, jira_server: str, jira_username: str, jira_password: str):
24+
def __init__(self, jira_server: str, jira_username: str, jira_password: str, verify: Union[bool, str] = True):
2525
"""Construct a new Adaptavist instance."""
2626

2727
self.jira_server = jira_server
2828
self.jira_username = jira_username
2929

3030
self._session = requests.Session()
31+
self._session.verify = verify
3132
self._adaptavist_api_url = f"{self.jira_server}/rest/atm/1.0"
3233
self._session.auth = HTTPBasicAuth(self.jira_username, jira_password)
3334
self._session.headers.update({"Accept": "application/json", "Content-type": "application/json"})

0 commit comments

Comments
 (0)