Skip to content

[Security] Update OidcTokenHandler dependencies and configuration #19779

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

Spomky
Copy link
Contributor

@Spomky Spomky commented Apr 11, 2024

Fixes #19740

This commit replaces the individual jwt packages previously needed by 'OidcTokenHandler' with the web-token/jwt-library. Configuration changes have been made to support multiple signing algorithms and a keyset instead of a single key. These changes provide more flexibility and reliability for token handling and verification.

This commit replaces the individual jwt packages previously needed by 'OidcTokenHandler' with the `web-token/jwt-library`. Configuration changes have been made to support multiple signing algorithms and a keyset instead of a single key. These changes provide more flexibility and reliability for token handling and verification.
@carsonbot carsonbot added this to the 7.1 milestone Apr 11, 2024
@OskarStark OskarStark changed the title [Security] Update OidcTokenHandler dependencies and configuration [Security] Update OidcTokenHandler dependencies and configuration Apr 19, 2024
The ``OidcTokenHandler`` requires ``web-token/jwt-signature``,
``web-token/jwt-checker`` and ``web-token/jwt-signature-algorithm-ecdsa``
packages. If you haven't installed them yet, run these commands:
The ``OidcTokenHandler`` requires the package ``web-token/jwt-library``.
Copy link
Contributor

@OskarStark OskarStark Apr 19, 2024

Choose a reason for hiding this comment

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

Suggested change
The ``OidcTokenHandler`` requires the package ``web-token/jwt-library``.
The ``OidcTokenHandler`` requires the ``web-token/jwt-library`` package::

Copy link
Member

Choose a reason for hiding this comment

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

I did this change while merging.

``web-token/jwt-checker`` and ``web-token/jwt-signature-algorithm-ecdsa``
packages. If you haven't installed them yet, run these commands:
The ``OidcTokenHandler`` requires the package ``web-token/jwt-library``.
If you haven't installed it yet, run this command:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
If you haven't installed it yet, run this command:

Copy link
Member

Choose a reason for hiding this comment

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

I didn't do this change because in other parts of this document we use the same expression. I think that being so explicit makes things very clear.

@OskarStark
Copy link
Contributor

One question, before 7.1 it worked with one and now with more. Shall we add sth like:

.. versionadded:: 7.1

    Add more than one algorithm is supported since Symfony 7.1.

?

@javiereguiluz javiereguiluz merged commit 6f33ce2 into symfony:7.1 Apr 26, 2024
@javiereguiluz
Copy link
Member

Thanks Florent!

Oskar, I also added the versionadded while merging. Thanks for the review.

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

Successfully merging this pull request may close these issues.

[Security] Support RSA algorithm signature for OIDC tokens
4 participants