title: using Authentication Provider without using WebSecurityConfigurerAdapter in Spring Security 5.7.0
body: <p>Now I am trying to implement spring security authentication provider for my spring boot spring security project. So previously we were able to extend WebSecurityConfigurerAdapter in our Security config file to customize the http and <code>HttpSecurity http</code> and <code>AuthenticationManagerBuilder auth</code> by overriding <code>configure</code>.</p>
  <p>But now (Spring Security 5.7.0) WebSecurityConfigurerAdapter  got deprecated and I am following WebSecurityCustomizer method like the following,</p>
  <pre><code>@EnableWebSecurity
  @Configuration
  public class SecurityConfig{
  
   @Bean
      public WebSecurityCustomizer webSecurityCustomizer() {
          return (web) -&gt; web.ignoring()
                  .antMatchers(&quot;/users/getUser&quot;);
      }
  
  }
  </code></pre>
  <p>So Here using WebSecurityCustomizer  , how can I use authentication provider functionality in my ReST API ? Can anyone guide me to solve this issue or kindly suggest updated documentation for refer please?</p>