Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:7.3fromSpomky:features/jwe-support
Jan 17, 2025

Conversation

Spomky
Copy link
Contributor

@SpomkySpomky commentedJul 13, 2024
edited
Loading

QA
Branch?7.3
Bug fix?no
New feature?yes
Deprecations?no
IssuesFix#50441
LicenseMIT

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.

security:firewalls:main:pattern:^/access_token:token_handler:oidc:...encryption:enabled:truealgorithms:[...]keyset:'{"keys": [{...}]}'

vincentchalamon and welcoMattic reacted with hooray emojivaltzu and welcoMattic reacted with heart emoji
@Spomky
Copy link
ContributorAuthor

Ping@vincentchalamon

vincentchalamon reacted with eyes emoji

@SpomkySpomkyforce-pushed thefeatures/jwe-support branch 2 times, most recently from90932a8 toeee5392CompareJuly 14, 2024 07:35
@SpomkySpomkyforce-pushed thefeatures/jwe-support branch fromeee5392 to7e47bfcCompareJuly 31, 2024 06:46
Copy link
Member

@nicolas-grekasnicolas-grekas left a 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?

@Spomky
Copy link
ContributorAuthor

Is there no XSD to update?

@nicolas-grekas I'm not sure what to change.

@fabpotfabpot modified the milestones:7.2,7.3Nov 20, 2024
@chalasr
Copy link
Member

@Spomky The new options need to be added to SecurityBundle/Resources/config/schema/security-1.0.xsd

@Spomky
Copy link
ContributorAuthor

@Spomky The new options need to be added to SecurityBundle/Resources/config/schema/security-1.0.xsd

Hello@chalasr,
I modified the schema. Note that I am not sure it is fine of not (I was not aware of it before your comment).
Regards.

@SpomkySpomkyforce-pushed thefeatures/jwe-support branch 2 times, most recently fromeed73ba toa4ee3abCompareJanuary 5, 2025 14:27
chalasr
chalasr previously approved these changesJan 5, 2025
@chalasrchalasr dismissed theirstale reviewJanuary 5, 2025 17:02

Some low-deps test is failing

@Spomky
Copy link
ContributorAuthor

Hi,

I am not sure how to fix the failing tests.
The annotation@requires extension openssl is present, but it looks like the dataProvider is called.
Should I refactor these tests?

@SpomkySpomkyforce-pushed thefeatures/jwe-support branch 3 times, most recently from7697f15 to6312567CompareJanuary 5, 2025 17:35
@chalasr
Copy link
Member

You may need to bump the security-http dependency to ^7.3 in security-bundle

@SpomkySpomkyforce-pushed thefeatures/jwe-support branch 5 times, most recently fromc69f934 to9434658CompareJanuary 5, 2025 18:12
@SpomkySpomkyforce-pushed thefeatures/jwe-support branch 4 times, most recently from41e0030 to78f9a88CompareJanuary 5, 2025 19:37
In addition to the excellent work of@vincentchalamonsymfony#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`.
@Spomky
Copy link
ContributorAuthor

Many thaks.
Took me a while to understand the problem with the remaining failing tests.😅
Sorry for the noise. All green now.

chalasr reacted with rocket emoji

@fabpot
Copy link
Member

Thank you@Spomky.

@fabpotfabpot merged commit0051b15 intosymfony:7.3Jan 17, 2025
11 checks passed
@SpomkySpomky deleted the features/jwe-support branchFebruary 7, 2025 20:18
@fabpotfabpot mentioned this pull requestMay 2, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@vincentchalamonvincentchalamonvincentchalamon left review comments

@OskarStarkOskarStarkOskarStark left review comments

@fabpotfabpotfabpot approved these changes

@chalasrchalasrchalasr approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
7.3
Development

Successfully merging this pull request may close these issues.

[Security] Support JWE on OidcTokenHandler
7 participants
@Spomky@chalasr@fabpot@nicolas-grekas@vincentchalamon@OskarStark@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp