spring-projects / spring-projects/spring-security
Create a class analogous to AbstractHttpConfigurer for reactive applications
Open
@jzheaux is already working on this.
Since Dec 14, 2020.
in: config
type: enhancement
- Dominant language
- Java
- Stars
- 9.6k
- Forks
- 6.3k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 52
Description
Expected Behavior
Need to have an ability to get access to a ServerHttpSecurity object after it has been instantiated in a developer's code.
For Servlet applications I can use this:
/resources/META-INF/spring.factories
org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer = \
com.company.oauth.MyOAuth2Configurer
final class MyOAuth2Configurer extends AbstractHttpConfigurer<MyOAuth2Configurer, HttpSecurity> {
@Override
public void init(HttpSecurity http) throws Exception {
ApplicationContext context = http.getSharedObject(ApplicationContext.class);
//Do some actions
}
}
For Webflux/Reactive applications there is no such class.
Current Behavior
No ability to get access to a ServerHttpSecurity object after it has been instantiated in a developer's code.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.