Skip to content
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

Remove Configuration meta-annotation from Enable* annotations #11653

Merged
merged 1 commit into from
Aug 9, 2022

Conversation

jsattler
Copy link
Contributor

Before, Spring Security's @enable* annotations were meta-annotated with @configuration.
While convenient, this is not consistent with the rest of the Spring projects and most notably
Spring Framework's @enable annotations. Additionally, the introduction of support for
@configuration(proxyBeanMethods=false) in Spring Framework provides a compelling reason to
remove @configuration meta-annotation from Spring Security's @enable annotations and allow
users to opt into their preferred configuration mode.

Closes gh-6613

Signed-off-by: Joshua Sattler [email protected]

Before, Spring Security's @enable* annotations were meta-annotated with @configuration.
While convenient, this is not consistent with the rest of the Spring projects and most notably
Spring Framework's @enable annotations. Additionally, the introduction of support for
@configuration(proxyBeanMethods=false) in Spring Framework provides a compelling reason to
remove @configuration meta-annotation from Spring Security's @enable annotations and allow
users to opt into their preferred configuration mode.

Closes spring-projectsgh-6613

Signed-off-by: Joshua Sattler <[email protected]>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 30, 2022
@rwinch rwinch self-assigned this Aug 8, 2022
@rwinch rwinch added in: config An issue in spring-security-config type: enhancement A general enhancement type: breaks-passivity A change that breaks passivity with the previous release and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 8, 2022
@rwinch rwinch merged commit 040111a into spring-projects:main Aug 9, 2022
@rwinch rwinch added this to the 6.0.0-M7 milestone Aug 9, 2022
@rwinch
Copy link
Member

rwinch commented Aug 9, 2022

Thanks for the PR @jsattler This is merged into main with a little clean up from my side a5069d7

@jsattler jsattler deleted the gh-6613 branch August 9, 2022 22:27
vpavic added a commit to vpavic/spring-session that referenced this pull request Aug 17, 2022
As of spring-projects/spring-security#11653, Spring Security's [at]Enable*Security annotations are not meta annotated with [at]Configuration which breaks some of our tests.

This commit adds missing [at]Configuration annotations where needed.

Closes spring-projectsgh-2118
rwinch pushed a commit to spring-projects/spring-session that referenced this pull request Aug 19, 2022
As of spring-projects/spring-security#11653, Spring Security's [at]Enable*Security annotations are not meta annotated with [at]Configuration which breaks some of our tests.

This commit adds missing [at]Configuration annotations where needed.

Closes gh-2118
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: breaks-passivity A change that breaks passivity with the previous release type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove @Configuration meta-annotation from @Enable annotations
3 participants