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

ReactiveOAuth2AuthorizedClientManagerConfiguration has been created too early #14900

Closed
sjohnr opened this issue Apr 12, 2024 · 0 comments
Closed
Assignees
Labels
in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) type: bug A general bug
Milestone

Comments

@sjohnr
Copy link
Member

sjohnr commented Apr 12, 2024

The Boot team is seeing the following warnings when running Spring Security related tests:

2024-04-12T12:07:39.300+01:00  WARN   --- [           main] o.s.c.a.ConfigurationClassPostProcessor  : Cannot enhance @Configuration bean definition 'org.springframework.security.config.annotation.web.reactive.ReactiveOAuth2ClientConfiguration$ReactiveOAuth2AuthorizedClientManagerConfiguration' since its singleton instance has been created too early. The typical cause is a non-static @Bean method with a BeanDefinitionRegistryPostProcessor return type: Consider declaring such methods as 'static' and/or marking the containing configuration class as 'proxyBeanMethods=false'.

We should ensure the @Configuration class is marked proxyBeanMethods=false.

@sjohnr sjohnr added type: bug A general bug in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) labels Apr 12, 2024
@sjohnr sjohnr added this to the 6.3.0-RC1 milestone Apr 12, 2024
@sjohnr sjohnr self-assigned this Apr 12, 2024
@sjohnr sjohnr closed this as completed in fd891d8 Apr 12, 2024
@sjohnr sjohnr moved this to Done in Spring Security Team Apr 12, 2024
@sjohnr sjohnr added type: enhancement A general enhancement type: bug A general bug and removed type: bug A general bug type: enhancement A general enhancement labels Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) type: bug A general bug
Projects
Status: Done
Development

No branches or pull requests

1 participant