Conversation
- Add DPoPProofGenerator class for RFC 9449 DPoP proof generation - URL parsing strips query/fragment from htu claim - JWK export contains only public components (kty, n, e) - Key rotation with active request tracking - Implement RSA 2048-bit key generation and management - Add access token hash computation (SHA-256 + base64url) - Add nonce storage and management - Thread-safe implementation with proper locking - Comprehensive unit tests (24 tests, 100% passing) RFC 9449 compliant implementation with security best practices. - Complete implementation of DPoP (Demonstrating Proof-of-Possession) per RFC 9449 for enhanced OAuth 2.0 security. Includes nonce handling, key rotation, and comprehensive error messages. All core features tested and production-ready.
Co-authored-by: semgrep-code-okta[bot] <205183498+semgrep-code-okta[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: Implement DPoP (RFC 9449) authentication for Okta Python SDK
Complete implementation of DPoP (Demonstrating Proof-of-Possession) authentication
per RFC 9449, providing cryptographic binding of access tokens to client keys for
enhanced security against token theft and replay attacks.
BREAKING CHANGES: None - fully backward compatible (opt-in via dpopEnabled flag)
Core Implementation
New Files (3)
Modified Files (4)
Features
DPoP Proof Generation
OAuth Integration
Request Enhancement
Configuration
Security
Testing
Unit Tests