Interface AuthenticationConfigurer<T extends org.springframework.security.core.Authentication>
- Type Parameters:
T- concreteAuthenticationtype 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 TypeMethodDescriptiondefault voidafterConfigureAdded(org.springframework.test.web.reactive.server.WebTestClient.MockServerSpec<?> serverSpec) default voidafterConfigurerAdded(org.springframework.test.web.reactive.server.WebTestClient.Builder builder, org.springframework.web.server.adapter.WebHttpHandlerBuilder httpHandlerBuilder, org.springframework.http.client.reactive.ClientHttpConnector connector) default voidbeforeServerCreated(org.springframework.web.server.adapter.WebHttpHandlerBuilder builder) default <U extends org.springframework.test.web.reactive.server.WebTestClientConfigurer & org.springframework.test.web.reactive.server.MockServerConfigurer>
UMethods 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:
beforeServerCreatedin interfaceorg.springframework.test.web.reactive.server.MockServerConfigurer
-
afterConfigureAdded
default void afterConfigureAdded(@NonNull org.springframework.test.web.reactive.server.WebTestClient.MockServerSpec<?> serverSpec) - Specified by:
afterConfigureAddedin interfaceorg.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:
afterConfigurerAddedin interfaceorg.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()
-