You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
In testing codes that applied spring-security, I felt the need for a secure flag.
Checking WebTestClientAutoConfiguration, I could see that customizing is possible by WebTestClientBuilderCustomizer. However, since WebTestClient.Builder.configureClient() has already been called, So I couldn't apply MockServerConfigurer that provided by spring-security.
If possible, it would be best to enable or disable the security option via the secure flag like @AutoConfigureMockMvc. If that's not possible, at least add logic to apply MockServerConfigurer beans.
The text was updated successfully, but these errors were encountered:
shortstories
changed the title
Add secure flag to @WebFluxTest and @AutoConfigureWebTestClient
Add secure flag to @WebFluxTest and @AutoConfigureWebTestClient
Jul 2, 2018
philwebb
changed the title
Add secure flag to @WebFluxTest and @AutoConfigureWebTestClient
Apply springSecurity configurer to WebTestClient
Sep 12, 2018
philwebb
changed the title
Apply springSecurity configurer to WebTestClient
Apply Spring Securiry configuration to WebTestClient
Sep 12, 2018
Hi.
In testing codes that applied spring-security, I felt the need for a secure flag.
Checking
WebTestClientAutoConfiguration
, I could see that customizing is possible byWebTestClientBuilderCustomizer
. However, sinceWebTestClient.Builder.configureClient()
has already been called, So I couldn't applyMockServerConfigurer
that provided by spring-security.If possible, it would be best to enable or disable the security option via the secure flag like
@AutoConfigureMockMvc
. If that's not possible, at least add logic to applyMockServerConfigurer
beans.The text was updated successfully, but these errors were encountered: