spring-projects / spring-projects/spring-security

Create a class analogous to AbstractHttpConfigurer for reactive applications

Open
#9,198 3 comments 3 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.