diff --git a/CHANGELOG.md b/CHANGELOG.md index 47ae3d6..313f3cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. 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). +## [0.1.6] - 2024-03-14 +### Bugfixes +- add keep_cookies to serialized aim fields + ## [0.1.5] - 2024-03-08 ### Bugfixes - Tests were not all functional diff --git a/aiobastion/aim.py b/aiobastion/aim.py index fbe49b5..15f5a6c 100644 --- a/aiobastion/aim.py +++ b/aiobastion/aim.py @@ -22,7 +22,7 @@ class EPV_AIM: Class managing communication with the Central Credential Provider (AIM) GetPassword Web Service """ _serialized_fields = ["host", "appid", "cert", "key", "verify", "timeout", "max_concurrent_tasks", - "keep_cookies"] + "keep_cookies"] _getPassword_request_parm = ["safe", "folder", "object", "username", "address", "database", "policyid", "reason", "connectiontimeout", "query", "queryformat", "failrequestonpasswordchange"] @@ -42,7 +42,7 @@ def __init__(self, host: str = None, appid: str = None, cert: str = None, key: s self.verify = verify self.timeout = timeout self.max_concurrent_tasks = max_concurrent_tasks - self.keep_cookies = keep_cookies # Whether to keep cookies between AIM calls + self.keep_cookies = keep_cookies # Whether to keep cookies between AIM calls # Session management self.__sema = None @@ -65,8 +65,8 @@ def __init__(self, host: str = None, appid: str = None, cert: str = None, key: s self.max_concurrent_tasks = Config.CYBERARK_DEFAULT_MAX_CONCURRENT_TASKS if self.verify is not False and not (isinstance(self.verify, str) and not isinstance(self.verify, bool)): - raise AiobastionException(f"Invalid type for parameter 'verify' in AIM: {type(self.verify)} value: {self.verify!r}") - + raise AiobastionException( + f"Invalid type for parameter 'verify' in AIM: {type(self.verify)} value: {self.verify!r}") def validate_and_setup_aim_ssl(self): if self.session: @@ -91,7 +91,8 @@ def validate_and_setup_aim_ssl(self): self.verify = Config.CYBERARK_DEFAULT_VERIFY if not (isinstance(self.verify, str) or isinstance(self.verify, bool)): - raise AiobastionException(f"Invalid type for parameter 'verify' (or 'CA') in AIM: {type(self.verify)} value: {self.verify!r}") + raise AiobastionException( + f"Invalid type for parameter 'verify' (or 'CA') in AIM: {type(self.verify)} value: {self.verify!r}") if (isinstance(self.verify, str) and not os.path.exists(self.verify)): raise AiobastionException(f"Parameter 'verify' in AIM: file not found {self.verify!r}") diff --git a/pyproject.toml b/pyproject.toml index 329e1b7..d9b8669 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "aiobastion" -version = "0.1.4" +version = "0.1.6" description = "Manage your Cyberark implementation" readme = "README.md" requires-python = ">=3.7"