title: Can I implement WebSecurityConfigurerAdapter on Spring WebFlux
body: <p>I'm currently using Springs' WebFlux and I wanted to implement Spring Security. I am struggling to make any of my <code>WebSecurityConfigurerAdapter</code> http rules work and I am thinking it is because <code>HttpSecurity</code> changes have no effect. I'll explain what I mean:</p>
  
  <p>I have chosen to implement <code>WebSecurityConfigurerAdapter</code> which has the method signature.</p>
  
  <pre><code>protected void configure(HttpSecurity http) throws Exception
  </code></pre>
  
  <p>This has been correctly configured but all of my endpoints receive <code>401</code> unauthorized (which is typical of a Configuration not being picked up and a default configuration being used instead). Instead, when I look at the implementations for WebFluxSecurity they usually implement a Bean with the following signature:</p>
  
  <pre><code>public SecurityWebFilterChain securitygWebFilterChain(
    ServerHttpSecurity http)
  </code></pre>
  
  <p>I know a lot of the WebFlux architecture implements a different set of Requests and Response objects to typical Spring so I am wondering whether I have to implement the <code>WebFlux</code> security way of doing things or if the more standard <code>WebSecurityConfigurerAdapter</code> way of implementing security should still work</p>
  
  <p>Cheers</p>