Skip to content

Navigation Menu

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

Appearance settings

[Security] Throw an explicit error when refreshing a token with a null user #59590

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

Conversation

alexandre-daubois
Copy link
Member

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #59559
License MIT

Follwing #59560 (comment), to prevent the code to simply fail and return an explicit message to the user.

@chalasr
Copy link
Member

chalasr commented Jan 24, 2025

Could we act earlier and prevent user-less token creation instead?

@alexandre-daubois alexandre-daubois force-pushed the unexpected-value-seccontext branch from f4157ad to 4672786 Compare January 24, 2025 14:24
@alexandre-daubois
Copy link
Member Author

Moved the condition as early as possible, when we know we deal with a TokenInterface

@alexandre-daubois alexandre-daubois force-pushed the unexpected-value-seccontext branch from 4672786 to cd427c3 Compare January 28, 2025 14:53
@nicolas-grekas
Copy link
Member

Thank you @alexandre-daubois.

@nicolas-grekas nicolas-grekas merged commit 4d4859a into symfony:6.4 Jan 28, 2025
11 checks passed
This was referenced Jan 29, 2025
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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.