Skip to content

Commit 2943150

Browse files
Merge pull request #127 from brettchaldecott/release/v2.2.0
Release/v2.2.0
2 parents 3825790 + 2ee2cdc commit 2943150

File tree

3 files changed

+72
-16
lines changed

3 files changed

+72
-16
lines changed

CHANGELOG.md

Lines changed: 70 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,80 @@ All notable changes to the Kinde Python SDK will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [2.0.9] - 2024-12-19
8+
## [2.2.0] - 2025-10-14
99

1010
### Fixed
11-
- **OAuth2 Introspection Authentication**: Fixed `validate_and_set_via_introspection` method to use Bearer token authentication instead of client credentials for the introspection endpoint. This resolves 401 Unauthorized errors when validating bearer tokens.
12-
- **Token Expiration Handling**: Fixed edge case in `set_tokens` method where `expires_in=0` was being treated as `None` and defaulting to 3600 seconds. Now properly handles zero expiration values.
13-
- **Exception Handling**: Improved exception handling in introspection method with proper exception chaining for better error reporting and debugging.
11+
- **Security Improvements**: Fixed XSS vulnerabilities by properly escaping JSON user data and HTML error messages
12+
- **Cookie Security**: Enhanced cookie security and code quality in OAuth server
13+
- **Storage Initialization**: Improved storage initialization with enhanced security logging
14+
- **Error Handling**: Better error handling across multiple modules with proper exception chaining
15+
- **Framework Support**: Fixed framework support for null framework with improved error handling
1416

1517
### Improved
16-
- **Code Quality**: Simplified expiration calculation in introspection method using conditional expression for cleaner code.
17-
- **Test Coverage**: Added comprehensive unit tests for the `validate_and_set_via_introspection` method covering success cases, error scenarios, edge cases, and thread safety.
18-
- **Documentation**: Fixed logging in FastAPI example to correctly access `UsersResponse` object properties.
18+
- **Code Quality**: Enhanced error handling, thread safety, and code organization across the SDK
19+
- **Cookie Parsing**: Improved OAuth server functionality with better cookie handling and security
20+
- **Session Management**: Added KindeSessionManagement for standalone mode
21+
- **Configuration**: Simplified configuration error messages and parameter masking logic
1922

20-
### Technical Details
21-
- The introspection method now first obtains a management token using client credentials, then uses that token to authenticate the introspection request with Bearer authentication
22-
- Added proper timeout handling (30 seconds) for introspection requests
23-
- Improved thread safety with proper locking mechanisms
24-
- Enhanced error messages for better debugging
23+
## [2.1.1] - 2025-09-04
2524

26-
## [2.0.8] - Previous Release
25+
### Fixed
26+
- **Management API**: Fixed users get/update/delete endpoints to use correct `/api/v1/user?id=...` format
27+
- **Project Configuration**: Updated project configuration and dependencies
28+
29+
### Improved
30+
- **Dependency Management**: Configured Renovate for automated dependency updates
31+
32+
## [2.1.0] - 2025-08-28
33+
34+
### Added
35+
- **Entitlements Support**: Enhanced entitlements functionality with improved API integration
36+
- **Force API Configuration**: Added SDK-level force_api configuration support
37+
38+
## [2.0.10] - 2025-08-07
39+
40+
### Added
41+
- **Reauth Functionality**: Implemented reauth functionality in FastAPI and Flask frameworks
42+
- **HTTPX Upgrade**: Upgraded httpx dependency version for better performance and security
43+
44+
### Improved
45+
- **Code Structure**: Restructured kinde_client_api for improved modularity
46+
47+
## [2.0.9] - 2025-07-15
48+
49+
### Added
50+
- **Token Management**: Enhanced token manager with comprehensive testing and introspection logic
51+
- **Management API**: Improved management API client with better token handling
2752

28-
Initial release of Kinde Python SDK v2.0.x series.
53+
## [2.0.8] - 2025-07-08
54+
55+
### Fixed
56+
- **Management API**: Resolved mapping and claims logic issues in management and auth modules
57+
58+
## [2.0.6] - 2025-07-08
59+
60+
### Fixed
61+
- **User Details Bug**: Resolved user details bug in SDK components
62+
- **Management API**: Fixed management API client issues and endpoint configurations
63+
- **Project Configuration**: Updated project configuration and dependencies
64+
65+
## [2.0.1] - 2025-07-04
66+
67+
### Added
68+
- **Permissions, Claims, and Feature Flags**: Added comprehensive permissions, claims, and feature flags functionality
69+
- **Billing Profile Support**: Added billing profile support with pricing table key parameter
70+
- **Portal Implementation**: Converted profiles to portals implementation with improved URL handling
71+
- **Management Client**: Added management client wrapper with comprehensive documentation
72+
- **Migration Documentation**: Added detailed migration documentation from v1 to v2
73+
74+
### Fixed
75+
- **Token Claims Handling**: Improved token claims handling with enhanced tests and examples
76+
- **URL Handling**: Improved URL handling in portals authentication
77+
- **Deadlock Issues**: Resolved deadlock issues in management module
78+
- **Dependencies**: Updated project dependencies and requirements
79+
- **Import Issues**: Fixed management client import issues in OpenAPI build process
80+
81+
### Improved
82+
- **Code Coverage**: Enhanced test coverage and added edge cases
83+
- **Framework Support**: Better support for Flask and FastAPI frameworks
84+
- **Error Handling**: Improved error handling across multiple modules

kinde_sdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from kinde_sdk.core.framework.null_framework import NullFramework
2626
from kinde_sdk.core.session_management import KindeSessionManagement
2727

28-
__version__ = "2.1.1"
28+
__version__ = "2.2.0"
2929

3030
__all__ = [
3131
"OAuth",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "kinde-python-sdk"
3-
version = "2.1.1"
3+
version = "2.2.0"
44
authors = [
55
{ name = "Kinde Engineering", email = "[email protected]" },
66
]

0 commit comments

Comments
 (0)