Interface AuthenticationConfigurer<T extends org.springframework.security.core.Authentication>
- Type Parameters:
T- concreteAuthenticationtype to build and configure in test security context
- All Superinterfaces:
com.c4_soft.springaddons.security.oauth2.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, com.c4_soft.springaddons.security.oauth2.AuthenticationBuilder<T>
Redundant code for
Authentication WebTestClient configurers- Author:
- Jérôme Wacongne <ch4mp#64;c4-soft.com>
-
Method Summary
Modifier and Type Method Description default 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)
-
Method Details
-
beforeServerCreated
default void beforeServerCreated(org.springframework.web.server.adapter.WebHttpHandlerBuilder builder)- Specified by:
beforeServerCreatedin interfaceorg.springframework.test.web.reactive.server.MockServerConfigurer
-
afterConfigureAdded
default void afterConfigureAdded(org.springframework.test.web.reactive.server.WebTestClient.MockServerSpec<?> serverSpec)- Specified by:
afterConfigureAddedin interfaceorg.springframework.test.web.reactive.server.MockServerConfigurer
-
afterConfigurerAdded
default void afterConfigurerAdded(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
-