Skip to content

Commit

Permalink
Merge pull request #29 from cyberstudio/fix-api-key-generation
Browse files Browse the repository at this point in the history
Fix api key generation
  • Loading branch information
Skyman2413 authored Apr 26, 2024
2 parents 68e7354 + 3b7cd38 commit 2baa732
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Release History
===============

2.12.1 (2024-04-26)
-------------------
- Fix api key generation

2.12.0 (2024-03-14)
-------------------
- Change user roles
Expand Down
2 changes: 1 addition & 1 deletion cybsi/__version__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.12.0"
__version__ = "2.12.1"
__title__ = "cybsi-python-sdk"
__description__ = "Cybersecurity threat intelligence development kit"
__license__ = "Apache License 2.0"
Expand Down
5 changes: 3 additions & 2 deletions cybsi/api/auth/api_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,13 +333,14 @@ class APIKeyForm(JsonObjectForm):

def __init__(
self,
expires_at: datetime,
expires_at: Optional[datetime],
*,
description: Optional[str] = None,
permissions: Iterable[Tuple[ResourceName, ActionSet]] = [],
):
super().__init__()
self._data["expiresAt"] = rfc3339_timestamp(expires_at)
if expires_at:
self._data["expiresAt"] = rfc3339_timestamp(expires_at)
if description is not None:
self._data["description"] = description
if permissions:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cybsi-sdk"
version = "2.12.0"
version = "2.12.1"
description = "Cybsi development kit"
authors = ["Cybsi SDK developers"]
license = "Apache License 2.0"
Expand Down Expand Up @@ -42,7 +42,7 @@ extend_skip = ["__init__.py"]
[tool.tbump]

[tool.tbump.version]
current = "2.12.0"
current = "2.12.1"

regex = '''
^
Expand Down

0 comments on commit 2baa732

Please sign in to comment.