Skip to content

Conversation

kse-music
Copy link
Contributor

@kse-music kse-music commented Jan 8, 2025

Use ObjectProvider instead of @Autowired HttpSecurity because when the user provides a SecurityFilterChain bean, it will still inject HttpSecurity. Since HttpSecurity is a prototype bean, this avoids its instantiation.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jan 8, 2025
@kse-music kse-music force-pushed the pr11 branch 2 times, most recently from 2623bf8 to 1de2f36 Compare January 9, 2025 02:45
@rwinch
Copy link
Member

rwinch commented Jan 9, 2025

Thanks for the PR! I went ahead and rebased it and pushed a minor change b21850a. Once the build passes this will be merged into main. Thanks again for the PR 😄

@rwinch rwinch enabled auto-merge (rebase) January 9, 2025 23:13
@rwinch rwinch self-assigned this Jan 9, 2025
@rwinch rwinch added in: config An issue in spring-security-config type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jan 9, 2025
@rwinch rwinch added this to the 6.5.0-M1 milestone Jan 9, 2025
@rwinch rwinch merged commit 72a2831 into spring-projects:main Jan 9, 2025
6 checks passed
kwondh5217 pushed a commit to kwondh5217/spring-security that referenced this pull request Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: config An issue in spring-security-config type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants