Skip to content

feat: implemented JWKS token decoder#54

Merged
mainick merged 18 commits intomainick:mainfrom
netbull:main
Jan 5, 2026
Merged

feat: implemented JWKS token decoder#54
mainick merged 18 commits intomainick:mainfrom
netbull:main

Conversation

@netbull
Copy link
Copy Markdown
Contributor

@netbull netbull commented Dec 1, 2025

No description provided.

netbull and others added 3 commits December 1, 2025 15:24
Co-authored-by: Jacob Dreesen <jacob@hdreesen.de>
Co-authored-by: Jacob Dreesen <jacob@hdreesen.de>
Co-authored-by: Jacob Dreesen <jacob@hdreesen.de>
@netbull
Copy link
Copy Markdown
Contributor Author

netbull commented Dec 1, 2025

@jdreesen thanks for the updates!

@mainick mainick requested a review from Copilot January 5, 2026 13:58
@mainick mainick added the enhancement New feature or request label Jan 5, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements a JWKS (JSON Web Key Set) token decoder to support dynamic key fetching from Keycloak's JWKS endpoint, eliminating the need for manual public key configuration.

Key changes:

  • Added new JWKSTokenDecoder class with automatic key fetching, caching, and PEM conversion
  • Extended TokenDecoderFactory to support JWKS algorithm with configurable options
  • Modified Symfony dependency version constraints in composer.json

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 18 comments.

Show a summary per file
File Description
src/Token/JWKSTokenDecoder.php New decoder implementation with JWKS fetching, caching, and ASN.1/PEM conversion capabilities
src/Token/TokenDecoderFactory.php Added JWKS algorithm constant and extended create() method to accept options array
src/Provider/KeycloakClient.php Updated to pass base_url and realm options to token decoder factory
composer.json Modified Symfony dependency version constraints from caret notation to explicit version patterns
README.md Updated documentation to include JWKS as a supported encryption algorithm option

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

mainick and others added 13 commits January 5, 2026 15:21
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mainick mainick requested a review from Copilot January 5, 2026 16:57
@mainick mainick merged commit 14f279f into mainick:main Jan 5, 2026
10 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 16 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants