-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Security][SecurityBundle] Add encryption support to OIDC tokens #57721
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 o 8000 ur terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Ping @vincentchalamon |
90932a8
to
eee5392
Compare
src/Symfony/Bundle/SecurityBundle/Tests/Functional/app/AccessToken/config_oidc.yml
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Security/Http/AccessToken/Oidc/OidcTokenHandler.php
Show resolved
Hide resolved
eee5392
to
7e47bfc
Compare
...y/Bundle/SecurityBundle/DependencyInjection/Security/AccessToken/OidcTokenHandlerFactory.php
Outdated
Show resolved
Hide resolved
...y/Bundle/SecurityBundle/DependencyInjection/Security/AccessToken/OidcTokenHandlerFactory.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/SecurityBundle/Resources/config/security_authenticator_access_token.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/SecurityBundle/Tests/Functional/AccessTokenTest.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there no XSD to update?
src/Symfony/Bundle/SecurityBundle/Resources/config/security_authenticator_access_token.php
Outdated
Show resolved
Hide resolved
7e47bfc
to
870844d
Compare
@nicolas-grekas I'm not sure what to change. |
870844d
to
c4eb497
Compare
c4eb497
to
cd1c431
Compare
@Spomky The new options need to be added to SecurityBundle/Resources/config/schema/security-1.0.xsd |
cd1c431
to
6545e1d
Compare
6545e1d
to
9fab3e4
Compare
eed73ba
to
a4ee3ab
Compare
a586a53
to
2461696
Compare
2461696
to
cb70da3
Compare
Hi, I am not sure how to fix the failing tests. |
7697f15
to
6312567
Compare
You may need to bump the security-http dependency to ^7.3 in security-bundle |
c69f934
to
9434658
Compare
41e0030
to
78f9a88
Compare
In addition to the excellent work of @vincentchalamon symfony#48272, this PR allows getting the data from the OAuth2 Introspection Endpoint. This endpoint is defined in the [RFC7662](https://datatracker.ietf.org/doc/html/rfc7662). It returns the following information that is used to retrieve the user: * If the access token is active * A set of claims that are similar to the OIDC one, including the `sub` or the `username`.
78f9a88
to
04c53b4
Compare
Many thaks. |
Thank you @Spomky. |
The changes add encryption support to OpenID Connect (OIDC) tokens in the Symfony Security Bundle. This is useful in making the application more secure. They also ensure the tokens are correctly decrypted and validated before use. Additionally, tests have been expanded to cover these new scenarios.