title: Spring Authorization Server 0.2.2, how to disable a default authentication provider like (OAuth2TokenRevocation) and override it with a custom one?
body: <p>I am using the new Spring Authorization Server 0.2.2 and I want to change the logic of the <code>OAuth2TokenRevocationAuthenticationProvider</code> and make my own implementation for the Token Revocation endpoint.</p>
  <p>I added a new <strong><code>CustomRevocationAuthenticationProvider</code></strong></p>
  <pre><code>public class CustomRevocationAuthenticationProvider implements AuthenticationProvider {
  @Override
  public Authentication authenticate(Authentication authentication) throws AuthenticationException {
          //My implementation
          try {
  
          //My implementation
  
          } catch (Exception e) {
              throw new OAuth2AuthenticationException(OAuth2ErrorCodes.INVALID_CLIENT);
          }
  
          //My implementation
      }
  
  
  @Override
  public boolean supports(Class&lt;?&gt; authentication) {
      return OAuth2TokenRevocationAuthenticationToken.class.isAssignableFrom(authentication);
  }
  </code></pre>
  <p>and I added this provider to the <code>SecurityFilterChain</code> like this:</p>
  <pre><code>@Bean
  public SecurityFilterChain authServerSecurityFilterChain(HttpSecurity http) throws Exception {
          OAuth2AuthorizationServerConfiguration.applyDefaultSecurity(http);
          return http.formLogin(Customizer.withDefaults())
                  .authenticationProvider(new CustomRevocationAuthenticationProvider())
                  .build();
      }
  </code></pre>
  <p>It works good but when I throw a <code>OAuth2AuthenticationException</code> in my implementation, the default <code>OAuth2TokenRevocationAuthenticationProvider</code> get executed and return <code>200 OK</code> response.</p>
  <p><strong>is there any way to disable the default oauth2 provider from handling my exception and getting executed?</strong></p>