Interface ProtocolChainCustomizer

All Known Implementing Classes:
ClientAuthProtocolChainCustomizer, ConsentProtocolCustomizer, DeviceProtocolChainCustomizer, LegacyImplicitProtocolChainCustomizer, MfaProtocolChainCustomizer, StepUpProtocolChainCustomizer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ProtocolChainCustomizer
Extension point that lets a feature customize the OAuth 2.1 / OpenID Connect protocol endpoints, for example to add an authentication provider or a converter to the token endpoint. Every bean of this type is applied to the protocol filter chain in Order order.

It deliberately does not extend Customizer: Spring Security applies every Customizer<OAuth2AuthorizationServerConfigurer> bean to every HttpSecurity, which would turn the login and API chains into protocol chains.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    customize(org.springframework.security.config.annotation.web.configurers.oauth2.server.authorization.OAuth2AuthorizationServerConfigurer server)
    Customizes the protocol endpoints.
  • Method Details

    • customize

      void customize(org.springframework.security.config.annotation.web.configurers.oauth2.server.authorization.OAuth2AuthorizationServerConfigurer server)
      Customizes the protocol endpoints.
      Parameters:
      server - configurer of the authorization server.