Interface AuthenticationConfigurer<T extends org.springframework.security.core.Authentication>

Type Parameters:
T - concrete Authentication type to build and configure in test security context
All Superinterfaces:
AuthenticationBuilder<T>, org.springframework.test.web.reactive.server.MockServerConfigurer, org.springframework.test.web.reactive.server.WebTestClientConfigurer
All Known Implementing Classes:
MockAuthenticationWebTestClientConfigurer, OidcIdAuthenticationTokenWebTestClientConfigurer

public interface AuthenticationConfigurer<T extends org.springframework.security.core.Authentication> extends org.springframework.test.web.reactive.server.WebTestClientConfigurer, org.springframework.test.web.reactive.server.MockServerConfigurer, AuthenticationBuilder<T>
Redundant code for Authentication WebTestClient configurers
Author:
Jérôme Wacongne <ch4mp@c4-soft.com>
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    afterConfigureAdded(org.springframework.test.web.reactive.server.WebTestClient.MockServerSpec<?> serverSpec)
     
    default void
    afterConfigurerAdded(org.springframework.test.web.reactive.server.WebTestClient.Builder builder, org.springframework.web.server.adapter.WebHttpHandlerBuilder httpHandlerBuilder, org.springframework.http.client.reactive.ClientHttpConnector connector)
     
    default void
    beforeServerCreated(org.springframework.web.server.adapter.WebHttpHandlerBuilder builder)
     
    default <U extends org.springframework.test.web.reactive.server.WebTestClientConfigurer & org.springframework.test.web.reactive.server.MockServerConfigurer>
    U
     

    Methods inherited from interface com.c4_soft.springaddons.security.oauth2.test.AuthenticationBuilder

    build
  • Method Details

    • beforeServerCreated

      default void beforeServerCreated(@NonNull org.springframework.web.server.adapter.WebHttpHandlerBuilder builder)
      Specified by:
      beforeServerCreated in interface org.springframework.test.web.reactive.server.MockServerConfigurer
    • afterConfigureAdded

      default void afterConfigureAdded(@NonNull org.springframework.test.web.reactive.server.WebTestClient.MockServerSpec<?> serverSpec)
      Specified by:
      afterConfigureAdded in interface org.springframework.test.web.reactive.server.MockServerConfigurer
    • afterConfigurerAdded

      default void afterConfigurerAdded(@NonNull org.springframework.test.web.reactive.server.WebTestClient.Builder builder, @Nullable org.springframework.web.server.adapter.WebHttpHandlerBuilder httpHandlerBuilder, @Nullable org.springframework.http.client.reactive.ClientHttpConnector connector)
      Specified by:
      afterConfigurerAdded in interface org.springframework.test.web.reactive.server.WebTestClientConfigurer
    • configurer

      default <U extends org.springframework.test.web.reactive.server.WebTestClientConfigurer & org.springframework.test.web.reactive.server.MockServerConfigurer> U configurer()