Skip to content

Conversation

valtzu
Copy link
Contributor

@valtzu valtzu commented Aug 28, 2025

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
License MIT

The attributes were not passed to an attribute-based user provider (AttributesBasedUserProviderInterface) in a UserProviderChain.

On 7.4 we could make ChainUserProvider implement AttributesBasedUserProviderInterface.

@valtzu valtzu requested a review from chalasr as a code owner August 28, 2025 17:18
@carsonbot carsonbot added this to the 7.4 milestone Aug 28, 2025
@valtzu valtzu changed the base branch from 7.4 to 6.4 August 28, 2025 17:19
@nicolas-grekas nicolas-grekas modified the milestones: 7.4, 6.4 Aug 29, 2025
@symfony symfony deleted a comment from carsonbot Aug 29, 2025
@valtzu valtzu force-pushed the fix-attribute-based-user-provider-chain branch from a723df9 to 9171141 Compare August 29, 2025 11:38
@valtzu valtzu force-pushed the fix-attribute-based-user-provider-chain branch from 9171141 to 8169616 Compare August 29, 2025 11:41
@fabpot
Copy link
Member

fabpot commented Aug 30, 2025

Thank you @valtzu.

@fabpot fabpot merged commit ece4f3e into symfony:6.4 Aug 30, 2025
8 of 11 checks passed
@nicolas-grekas
Copy link
Member

PR welcome on 8.0

fabpot added a commit that referenced this pull request Sep 3, 2025
…(valtzu)

This PR was merged into the 6.4 branch.

Discussion
----------

[Security] Pass attributes to nested `ChainUserProvider`s

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| License       | MIT

Fix a missed corner case of #61548 found by `@nicolas`-grekas in #61594 (comment)

_(Not needed on 8.0)_

Commits
-------

cb75dd2 [Security] Pass attributes to nested `ChainUserProviders`
nicolas-grekas added a commit that referenced this pull request Sep 3, 2025
…sBasedUserProvider` (valtzu)

This PR was merged into the 8.0 branch.

Discussion
----------

[Security] Make `UserChainProvider` implement `AttributesBasedUserProvider`

| Q             | A
| ------------- | ---
| Branch?       | 8.0
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| License       | MIT

Related to #61548

Commits
-------

7d9a6d1 [Security] Make `UserChainProvider` implement `AttributesBasedUserProviderInterface`
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.

4 participants