Search in sources :

Example 1 with ServerHttpSecurity

use of org.springframework.security.config.web.server.ServerHttpSecurity in project spring-security by spring-projects.

the class ServerHttpSecurityConfigurationTests method loadConfigWhenProxyingEnabledAndSubclassThenServerHttpSecurityExists.

@Test
public void loadConfigWhenProxyingEnabledAndSubclassThenServerHttpSecurityExists() {
    this.spring.register(SubclassConfig.class, ReactiveAuthenticationTestConfiguration.class, WebFluxSecurityConfiguration.class).autowire();
    ServerHttpSecurity serverHttpSecurity = this.spring.getContext().getBean(ServerHttpSecurity.class);
    assertThat(serverHttpSecurity).isNotNull();
}
Also used : ReactiveAuthenticationTestConfiguration(org.springframework.security.config.users.ReactiveAuthenticationTestConfiguration) ServerHttpSecurity(org.springframework.security.config.web.server.ServerHttpSecurity) Test(org.junit.jupiter.api.Test)

Example 2 with ServerHttpSecurity

use of org.springframework.security.config.web.server.ServerHttpSecurity in project spring-security by spring-projects.

the class ServerHttpSecurityConfigurationTests method loadConfigWhenReactiveUserDetailsServiceConfiguredThenServerHttpSecurityExists.

@Test
public void loadConfigWhenReactiveUserDetailsServiceConfiguredThenServerHttpSecurityExists() {
    this.spring.register(ServerHttpSecurityConfiguration.class, ReactiveAuthenticationTestConfiguration.class, WebFluxSecurityConfiguration.class).autowire();
    ServerHttpSecurity serverHttpSecurity = this.spring.getContext().getBean(ServerHttpSecurity.class);
    assertThat(serverHttpSecurity).isNotNull();
}
Also used : ReactiveAuthenticationTestConfiguration(org.springframework.security.config.users.ReactiveAuthenticationTestConfiguration) ServerHttpSecurity(org.springframework.security.config.web.server.ServerHttpSecurity) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)2 ReactiveAuthenticationTestConfiguration (org.springframework.security.config.users.ReactiveAuthenticationTestConfiguration)2 ServerHttpSecurity (org.springframework.security.config.web.server.ServerHttpSecurity)2