|
|
|
@ -13,12 +13,8 @@
|
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
|
* limitations under the License.
|
|
|
|
|
*/
|
|
|
|
|
package org.springframework.boot.test.autoconfigure.web.reactive;
|
|
|
|
|
|
|
|
|
|
/** Configuration for Spring Security's {@link org.springframework.test.web.reactive.server.WebTestClient} integration.
|
|
|
|
|
*
|
|
|
|
|
* @author Madhura Bhave
|
|
|
|
|
*/
|
|
|
|
|
package org.springframework.boot.test.autoconfigure.web.reactive;
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
@ -26,6 +22,12 @@ import org.springframework.context.annotation.Configuration;
|
|
|
|
|
import org.springframework.security.test.web.reactive.server.SecurityMockServerConfigurers;
|
|
|
|
|
import org.springframework.test.web.reactive.server.MockServerConfigurer;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Configuration for Spring Security's
|
|
|
|
|
* {@link org.springframework.test.web.reactive.server.WebTestClient} integration.
|
|
|
|
|
*
|
|
|
|
|
* @author Madhura Bhave
|
|
|
|
|
*/
|
|
|
|
|
@Configuration
|
|
|
|
|
@ConditionalOnClass(SecurityMockServerConfigurers.class)
|
|
|
|
|
class WebTestClientSecurityConfiguration {
|
|
|
|
|