Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Okta Python SDK Changelog

# 3.4.7

## Fixed
* Fixed a `ValidationError` crash in `list_network_zones()` and `get_network_zone()` for `DYNAMIC` and `DYNAMIC_V2` zones with `asns` or `locations` values, including empty arrays. The `allOf` wrappers on these array fields in `openapi/api.yaml` generated empty object models instead of lists; the fields now generate as `List[str]` and `List[NetworkZoneLocation]`, aligned with the upstream spec. The six empty wrapper models (`DynamicNetworkZoneAllOf{Asns,Locations}` and `EnhancedDynamicNetworkZoneAllOf{Asns,Locations}{Include,Exclude}`) are removed; use the plain lists instead. Network Zone `asns`, `locations` and `ipServiceCategories` lists are now limited to 75 entries. PR [#601](https://github.com/okta/okta-sdk-python/pull/601)

## Security
* Resolved Dependabot security alerts by upgrading runtime dependencies: `aiohttp` 3.14.4 ([#603](https://github.com/okta/okta-sdk-python/pull/603)) and `PyJWT` 2.15.1 ([#599](https://github.com/okta/okta-sdk-python/pull/599)).
* Upgraded `jwcrypto` to 1.6.1 ([#591](https://github.com/okta/okta-sdk-python/pull/591)) and the `urllib3` minimum to 2.8.0 ([#585](https://github.com/okta/okta-sdk-python/pull/585)) to pick up upstream security releases.
* Added a `virtualenv` >= 21.14.9 development dependency to resolve Dependabot security alerts for the version pulled in transitively by `tox`.

## Dependencies
* Bumped runtime dependencies: `pydantic` 2.14.0 ([#604](https://github.com/okta/okta-sdk-python/pull/604)), `pydash` 8.1.0 ([#595](https://github.com/okta/okta-sdk-python/pull/595)), and `typing-extensions` >= 4.16.0 ([#586](https://github.com/okta/okta-sdk-python/pull/586)).
* Bumped development and testing dependencies: `flake8` 7.4.1 ([#588](https://github.com/okta/okta-sdk-python/pull/588)), `mypy` 2.4.0 ([#598](https://github.com/okta/okta-sdk-python/pull/598)), `pytest` 9.1.1 ([#589](https://github.com/okta/okta-sdk-python/pull/589)), `pytest-mock` 3.16.0 ([#597](https://github.com/okta/okta-sdk-python/pull/597)), `pytest-randomly` >= 5.0.0 ([#592](https://github.com/okta/okta-sdk-python/pull/592)), `pytest-recording` 0.14.0 ([#596](https://github.com/okta/okta-sdk-python/pull/596)), `tox` 4.65.0 ([#605](https://github.com/okta/okta-sdk-python/pull/605)), `types-python-dateutil` >= 2.9.0.20260807 ([#593](https://github.com/okta/okta-sdk-python/pull/593)), and `virtualenv` >= 21.14.9.
* Updated OpenAPI Generator mustache templates (`requirements.mustache`, `setup.mustache`, `pyproject.mustache`, `test-requirements.mustache`) to reflect the new dependency versions for consistent future code generation.

# 3.4.6

## Fixed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ This repository contains the Okta management SDK for Python. This SDK can be use

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- Package version: 3.4.6
- Package version: 3.4.7
- OpenAPI JAR Generator version: 7.7.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://developer.okta.com/](https://developer.okta.com/)
Expand Down
2 changes: 1 addition & 1 deletion okta/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
""" # noqa: E501


__version__ = "3.4.6"
__version__ = "3.4.7"

import importlib as _importlib
import threading as _threading
Expand Down
2 changes: 1 addition & 1 deletion okta/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__(self, request_executor: Any, config: Dict[str, Any]) -> None:
)
raise ValueError(
"DPoP requires 'pycryptodomex' and 'jwcrypto' libraries. "
"Install with: pip install pycryptodomex>=3.23.0 jwcrypto>=1.5.8"
"Install with: pip install pycryptodomex>=3.23.0 jwcrypto>=1.6.1"
) from error

try:
Expand Down
2 changes: 1 addition & 1 deletion openapi/config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
templateDir: ./templates
outputDir: ..
packageName: okta
packageVersion: 3.4.6
packageVersion: 3.4.7
useOneOfDiscriminatorLookup: true
files:
okta/okta_configuration.mustache:
Expand Down
2 changes: 1 addition & 1 deletion openapi/templates/README_onlypackage.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ This python library package is generated without supporting files like setup.py

To be able to use it, you will need these dependencies in your own package that uses this library:

* urllib3 >= 1.25.3
* urllib3 >= 2.8.0
* python-dateutil
{{#asyncio}}
* aiohttp
Expand Down
2 changes: 1 addition & 1 deletion openapi/templates/okta/oauth.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class OAuth:
)
raise ValueError(
"DPoP requires 'pycryptodomex' and 'jwcrypto' libraries. "
"Install with: pip install pycryptodomex>=3.23.0 jwcrypto>=1.5.8"
"Install with: pip install pycryptodomex>=3.23.0 jwcrypto>=1.6.1"
) from error

try:
Expand Down
19 changes: 10 additions & 9 deletions openapi/templates/pyproject.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ include = ["{{packageName}}/py.typed"]
[tool.poetry.dependencies]
python = "^3.9"

urllib3 = ">= 1.25.3"
urllib3 = ">= 2.8.0"
python-dateutil = ">=2.9.0.post0"
{{#asyncio}}
aiohttp = ">= 3.14.3"
aiohttp = ">= 3.14.4"
aiohttp-retry = ">= 2.8.3"
{{/asyncio}}
{{#tornado}}
Expand All @@ -25,15 +25,16 @@ tornado = ">=4.2,<5"
pem = ">= 19.3.0"
pycryptodome = ">= 3.9.0"
{{/hasHttpSignatureMethods}}
pydantic = ">=2.11.3"
typing-extensions = ">=4.7.1"
pydantic = ">=2.14.0"
typing-extensions = ">=4.16.0"

[tool.poetry.dev-dependencies]
pytest = ">=9.0.3"
tox = ">=4.30.3"
flake8 = ">=7.3.0"
types-python-dateutil = ">=2.8.19"
mypy = "1.4.1"
pytest = ">=9.1.1"
tox = ">=4.65.0"
flake8 = ">=7.4.1"
types-python-dateutil = ">=2.9.0.20260807"
mypy = "2.4.0"
virtualenv = ">=21.14.9"


[build-system]
Expand Down
20 changes: 10 additions & 10 deletions openapi/templates/requirements.mustache
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
aenum==3.1.17
aiohttp==3.14.3
aiohttp==3.14.4
blinker==1.9.0
jwcrypto==1.5.8
jwcrypto==1.6.1
pycryptodomex==3.23.0
pydantic==2.11.3
pydash==8.0.6
PyJWT==2.13.0
pydantic==2.14.0
pydash==8.1.0
PyJWT==2.15.1
python-dateutil==2.9.0.post0
PyYAML==6.0.3
requests==2.34.2
xmltodict==1.0.4

# Development & Testing Tools
flake8==7.3.0
flake8==7.4.1
pyfakefs==6.2.0
pytest==9.0.3
pytest==9.1.1
pytest-asyncio==1.4.0
pytest-mock==3.15.1
pytest-recording==0.13.4
tox==4.30.3
pytest-mock==3.16.0
pytest-recording==0.14.0
tox==4.65.0
twine==7.0.0
12 changes: 6 additions & 6 deletions openapi/templates/setup.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ NAME = "okta"
PYTHON_REQUIRES = ">=3.10"
REQUIRES = [
"aenum >= 3.1.17",
"aiohttp >= 3.14.3",
"aiohttp >= 3.14.4",
"blinker >= 1.9.0",
'jwcrypto >= 1.5.8',
'jwcrypto >= 1.6.1',
"pycryptodomex >= 3.23.0",
"pydantic >= 2.11.3",
"pydash >= 8.0.6",
"PyJWT >= 2.13.0",
"pydantic >= 2.14.0",
"pydash >= 8.1.0",
"PyJWT >= 2.15.1",
"python-dateutil >= 2.9.0.post0",
"PyYAML >= 6.0.3",
"requests >= 2.34.2",
Expand Down Expand Up @@ -70,7 +70,7 @@ setup(
"Topic :: Software Development :: Libraries :: Python Modules",
],
name=NAME,
version="3.4.6",
version="3.4.7",
description="Python SDK for the Okta Management API",
author="Okta, Inc.",
author_email="developer-community-products@okta.com",
Expand Down
8 changes: 4 additions & 4 deletions openapi/templates/test-requirements.mustache
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pytest~=9.0.3
pytest~=9.1.1
pytest-cov>=7.1.0
pytest-randomly>=4.1.0
mypy>=1.4.1
types-python-dateutil>=2.8.19
pytest-randomly>=5.0.0
mypy>=2.4.0
types-python-dateutil>=2.9.0.20260807
19 changes: 10 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "okta"
version = "3.4.6"
version = "3.4.7"
description = "Okta Admin Management"
authors = ["Okta Developer Team <devex-public@okta.com>"]
license = "Apache-2.0"
Expand All @@ -12,17 +12,18 @@ include = ["okta/py.typed"]
[tool.poetry.dependencies]
python = "^3.10"

urllib3 = ">= 1.25.3"
urllib3 = ">= 2.8.0"
python-dateutil = ">=2.9.0.post0"
pydantic = ">=2.11.3"
typing-extensions = ">=4.7.1"
pydantic = ">=2.14.0"
typing-extensions = ">=4.16.0"

[tool.poetry.dev-dependencies]
pytest = ">=9.0.3"
tox = ">=4.30.3"
flake8 = ">=7.3.0"
types-python-dateutil = ">=2.8.19"
mypy = "1.4.1"
pytest = ">=9.1.1"
tox = ">=4.65.0"
flake8 = ">=7.4.1"
types-python-dateutil = ">=2.9.0.20260807"
mypy = "2.4.0"
virtualenv = ">=21.14.9"


[build-system]
Expand Down
20 changes: 10 additions & 10 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
aenum==3.1.17
aiohttp==3.14.3
aiohttp==3.14.4
blinker==1.9.0
jwcrypto==1.5.8
jwcrypto==1.6.1
pycryptodomex==3.23.0
pydantic==2.11.3
pydash==8.0.6
PyJWT==2.13.0
pydantic==2.14.0
pydash==8.1.0
PyJWT==2.15.1
python-dateutil==2.9.0.post0
PyYAML==6.0.3
requests==2.34.2
xmltodict==1.0.4

# Development & Testing Tools
flake8==7.3.0
flake8==7.4.1
pyfakefs==6.2.0
pytest==9.0.3
pytest==9.1.1
pytest-asyncio==1.4.0
pytest-mock==3.15.1
pytest-recording==0.13.4
tox==4.30.3
pytest-mock==3.16.0
pytest-recording==0.14.0
tox==4.65.0
twine==6.2.0
12 changes: 6 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
PYTHON_REQUIRES = ">=3.10"
REQUIRES = [
"aenum >= 3.1.17",
"aiohttp >= 3.14.3",
"aiohttp >= 3.14.4",
"blinker >= 1.9.0",
'jwcrypto >= 1.5.8',
'jwcrypto >= 1.6.1',
"pycryptodomex >= 3.23.0",
"pydantic >= 2.11.3",
"pydash >= 8.0.6",
"PyJWT >= 2.13.0",
"pydantic >= 2.14.0",
"pydash >= 8.1.0",
"PyJWT >= 2.15.1",
"python-dateutil >= 2.9.0.post0",
"PyYAML >= 6.0.3",
"requests >= 2.34.2",
Expand Down Expand Up @@ -70,7 +70,7 @@ def get_version():
"Topic :: Software Development :: Libraries :: Python Modules",
],
name=NAME,
version="3.4.6",
version="3.4.7",
description="Python SDK for the Okta Management API",
author="Okta, Inc.",
author_email="developer-community-products@okta.com",
Expand Down
8 changes: 4 additions & 4 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pytest~=9.0.3
pytest~=9.1.1
pytest-cov>=7.1.0
pytest-randomly>=4.1.0
mypy>=1.4.1
types-python-dateutil>=2.8.19
pytest-randomly>=5.0.0
mypy>=2.4.0
types-python-dateutil>=2.9.0.20260807
Loading