Resolve package tangles in Kotlin server package
This commit is contained in:
parent
0a42aa26c8
commit
bc272ddf73
|
@ -14,10 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.security.config.web.server.headers
|
package org.springframework.security.config.web.server
|
||||||
|
|
||||||
import org.springframework.security.config.web.server.ServerHttpSecurity
|
|
||||||
import org.springframework.security.config.web.server.ServerSecurityMarker
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A Kotlin DSL to configure the [ServerHttpSecurity] cache control headers using
|
* A Kotlin DSL to configure the [ServerHttpSecurity] cache control headers using
|
|
@ -14,10 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.security.config.web.server.headers
|
package org.springframework.security.config.web.server
|
||||||
|
|
||||||
import org.springframework.security.config.web.server.ServerHttpSecurity
|
|
||||||
import org.springframework.security.config.web.server.ServerSecurityMarker
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A Kotlin DSL to configure the [ServerHttpSecurity] Content-Security-Policy header using
|
* A Kotlin DSL to configure the [ServerHttpSecurity] Content-Security-Policy header using
|
|
@ -14,10 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.security.config.web.server.headers
|
package org.springframework.security.config.web.server
|
||||||
|
|
||||||
import org.springframework.security.config.web.server.ServerHttpSecurity
|
|
||||||
import org.springframework.security.config.web.server.ServerSecurityMarker
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A Kotlin DSL to configure the [ServerHttpSecurity] the content type options header
|
* A Kotlin DSL to configure the [ServerHttpSecurity] the content type options header
|
|
@ -14,10 +14,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.security.config.web.server.headers
|
package org.springframework.security.config.web.server
|
||||||
|
|
||||||
import org.springframework.security.config.web.server.ServerHttpSecurity
|
|
||||||
import org.springframework.security.config.web.server.ServerSecurityMarker
|
|
||||||
import org.springframework.security.web.server.header.XFrameOptionsServerHttpHeadersWriter
|
import org.springframework.security.web.server.header.XFrameOptionsServerHttpHeadersWriter
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -16,7 +16,6 @@
|
||||||
|
|
||||||
package org.springframework.security.config.web.server
|
package org.springframework.security.config.web.server
|
||||||
|
|
||||||
import org.springframework.security.config.web.server.headers.*
|
|
||||||
import org.springframework.security.web.server.header.*
|
import org.springframework.security.web.server.header.*
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -14,10 +14,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.security.config.web.server.headers
|
package org.springframework.security.config.web.server
|
||||||
|
|
||||||
import org.springframework.security.config.web.server.ServerHttpSecurity
|
|
||||||
import org.springframework.security.config.web.server.ServerSecurityMarker
|
|
||||||
import java.time.Duration
|
import java.time.Duration
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -14,13 +14,11 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.security.config.web.server.oauth2.resourceserver
|
package org.springframework.security.config.web.server
|
||||||
|
|
||||||
import org.springframework.core.convert.converter.Converter
|
import org.springframework.core.convert.converter.Converter
|
||||||
import org.springframework.security.authentication.AbstractAuthenticationToken
|
import org.springframework.security.authentication.AbstractAuthenticationToken
|
||||||
import org.springframework.security.authentication.ReactiveAuthenticationManager
|
import org.springframework.security.authentication.ReactiveAuthenticationManager
|
||||||
import org.springframework.security.config.web.server.ServerHttpSecurity
|
|
||||||
import org.springframework.security.config.web.server.ServerSecurityMarker
|
|
||||||
import org.springframework.security.core.Authentication
|
import org.springframework.security.core.Authentication
|
||||||
import org.springframework.security.oauth2.jwt.Jwt
|
import org.springframework.security.oauth2.jwt.Jwt
|
||||||
import org.springframework.security.oauth2.jwt.ReactiveJwtDecoder
|
import org.springframework.security.oauth2.jwt.ReactiveJwtDecoder
|
|
@ -17,8 +17,6 @@
|
||||||
package org.springframework.security.config.web.server
|
package org.springframework.security.config.web.server
|
||||||
|
|
||||||
import org.springframework.security.authentication.ReactiveAuthenticationManagerResolver
|
import org.springframework.security.authentication.ReactiveAuthenticationManagerResolver
|
||||||
import org.springframework.security.config.web.server.oauth2.resourceserver.ServerJwtDsl
|
|
||||||
import org.springframework.security.config.web.server.oauth2.resourceserver.ServerOpaqueTokenDsl
|
|
||||||
import org.springframework.security.web.server.ServerAuthenticationEntryPoint
|
import org.springframework.security.web.server.ServerAuthenticationEntryPoint
|
||||||
import org.springframework.security.web.server.authentication.ServerAuthenticationConverter
|
import org.springframework.security.web.server.authentication.ServerAuthenticationConverter
|
||||||
import org.springframework.security.web.server.authorization.ServerAccessDeniedHandler
|
import org.springframework.security.web.server.authorization.ServerAccessDeniedHandler
|
||||||
|
|
|
@ -14,10 +14,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.security.config.web.server.oauth2.resourceserver
|
package org.springframework.security.config.web.server
|
||||||
|
|
||||||
import org.springframework.security.config.web.server.ServerHttpSecurity
|
|
||||||
import org.springframework.security.config.web.server.ServerSecurityMarker
|
|
||||||
import org.springframework.security.oauth2.server.resource.introspection.ReactiveOpaqueTokenIntrospector
|
import org.springframework.security.oauth2.server.resource.introspection.ReactiveOpaqueTokenIntrospector
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -14,10 +14,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.security.config.web.server.headers
|
package org.springframework.security.config.web.server
|
||||||
|
|
||||||
import org.springframework.security.config.web.server.ServerHttpSecurity
|
|
||||||
import org.springframework.security.config.web.server.ServerSecurityMarker
|
|
||||||
import org.springframework.security.web.server.header.ReferrerPolicyServerHttpHeadersWriter
|
import org.springframework.security.web.server.header.ReferrerPolicyServerHttpHeadersWriter
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -14,10 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.security.config.web.server.headers
|
package org.springframework.security.config.web.server
|
||||||
|
|
||||||
import org.springframework.security.config.web.server.ServerHttpSecurity
|
|
||||||
import org.springframework.security.config.web.server.ServerSecurityMarker
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A Kotlin DSL to configure the [ServerHttpSecurity] XSS protection header using
|
* A Kotlin DSL to configure the [ServerHttpSecurity] XSS protection header using
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.security.config.web.server.headers
|
package org.springframework.security.config.web.server
|
||||||
|
|
||||||
import org.junit.Rule
|
import org.junit.Rule
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
|
@ -23,9 +23,7 @@ import org.springframework.context.ApplicationContext
|
||||||
import org.springframework.context.annotation.Bean
|
import org.springframework.context.annotation.Bean
|
||||||
import org.springframework.http.HttpHeaders
|
import org.springframework.http.HttpHeaders
|
||||||
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
|
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
|
||||||
import org.springframework.security.config.web.server.invoke
|
|
||||||
import org.springframework.security.config.test.SpringTestRule
|
import org.springframework.security.config.test.SpringTestRule
|
||||||
import org.springframework.security.config.web.server.ServerHttpSecurity
|
|
||||||
import org.springframework.security.web.server.SecurityWebFilterChain
|
import org.springframework.security.web.server.SecurityWebFilterChain
|
||||||
import org.springframework.test.web.reactive.server.WebTestClient
|
import org.springframework.test.web.reactive.server.WebTestClient
|
||||||
import org.springframework.web.reactive.config.EnableWebFlux
|
import org.springframework.web.reactive.config.EnableWebFlux
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.security.config.web.server.headers
|
package org.springframework.security.config.web.server
|
||||||
|
|
||||||
import org.junit.Rule
|
import org.junit.Rule
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
|
@ -22,9 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired
|
||||||
import org.springframework.context.ApplicationContext
|
import org.springframework.context.ApplicationContext
|
||||||
import org.springframework.context.annotation.Bean
|
import org.springframework.context.annotation.Bean
|
||||||
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
|
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
|
||||||
import org.springframework.security.config.web.server.invoke
|
|
||||||
import org.springframework.security.config.test.SpringTestRule
|
import org.springframework.security.config.test.SpringTestRule
|
||||||
import org.springframework.security.config.web.server.ServerHttpSecurity
|
|
||||||
import org.springframework.security.web.server.SecurityWebFilterChain
|
import org.springframework.security.web.server.SecurityWebFilterChain
|
||||||
import org.springframework.security.web.server.header.ContentSecurityPolicyServerHttpHeadersWriter
|
import org.springframework.security.web.server.header.ContentSecurityPolicyServerHttpHeadersWriter
|
||||||
import org.springframework.test.web.reactive.server.WebTestClient
|
import org.springframework.test.web.reactive.server.WebTestClient
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.security.config.web.server.headers
|
package org.springframework.security.config.web.server
|
||||||
|
|
||||||
import org.junit.Rule
|
import org.junit.Rule
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
|
@ -22,9 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired
|
||||||
import org.springframework.context.ApplicationContext
|
import org.springframework.context.ApplicationContext
|
||||||
import org.springframework.context.annotation.Bean
|
import org.springframework.context.annotation.Bean
|
||||||
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
|
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
|
||||||
import org.springframework.security.config.web.server.invoke
|
|
||||||
import org.springframework.security.config.test.SpringTestRule
|
import org.springframework.security.config.test.SpringTestRule
|
||||||
import org.springframework.security.config.web.server.ServerHttpSecurity
|
|
||||||
import org.springframework.security.web.server.SecurityWebFilterChain
|
import org.springframework.security.web.server.SecurityWebFilterChain
|
||||||
import org.springframework.security.web.server.header.ContentTypeOptionsServerHttpHeadersWriter
|
import org.springframework.security.web.server.header.ContentTypeOptionsServerHttpHeadersWriter
|
||||||
import org.springframework.test.web.reactive.server.WebTestClient
|
import org.springframework.test.web.reactive.server.WebTestClient
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.security.config.web.server.headers
|
package org.springframework.security.config.web.server
|
||||||
|
|
||||||
import org.junit.Rule
|
import org.junit.Rule
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
|
@ -22,9 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired
|
||||||
import org.springframework.context.ApplicationContext
|
import org.springframework.context.ApplicationContext
|
||||||
import org.springframework.context.annotation.Bean
|
import org.springframework.context.annotation.Bean
|
||||||
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
|
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
|
||||||
import org.springframework.security.config.web.server.invoke
|
|
||||||
import org.springframework.security.config.test.SpringTestRule
|
import org.springframework.security.config.test.SpringTestRule
|
||||||
import org.springframework.security.config.web.server.ServerHttpSecurity
|
|
||||||
import org.springframework.security.web.header.writers.frameoptions.XFrameOptionsHeaderWriter
|
import org.springframework.security.web.header.writers.frameoptions.XFrameOptionsHeaderWriter
|
||||||
import org.springframework.security.web.server.SecurityWebFilterChain
|
import org.springframework.security.web.server.SecurityWebFilterChain
|
||||||
import org.springframework.security.web.server.header.XFrameOptionsServerHttpHeadersWriter
|
import org.springframework.security.web.server.header.XFrameOptionsServerHttpHeadersWriter
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.security.config.web.server.oauth2.resourceserver
|
package org.springframework.security.config.web.server
|
||||||
|
|
||||||
import okhttp3.mockwebserver.MockResponse
|
import okhttp3.mockwebserver.MockResponse
|
||||||
import okhttp3.mockwebserver.MockWebServer
|
import okhttp3.mockwebserver.MockWebServer
|
||||||
|
@ -31,8 +31,6 @@ import org.springframework.security.authentication.AbstractAuthenticationToken
|
||||||
import org.springframework.security.authentication.TestingAuthenticationToken
|
import org.springframework.security.authentication.TestingAuthenticationToken
|
||||||
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
|
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
|
||||||
import org.springframework.security.config.test.SpringTestRule
|
import org.springframework.security.config.test.SpringTestRule
|
||||||
import org.springframework.security.config.web.server.ServerHttpSecurity
|
|
||||||
import org.springframework.security.config.web.server.invoke
|
|
||||||
import org.springframework.security.oauth2.core.oidc.IdTokenClaimNames
|
import org.springframework.security.oauth2.core.oidc.IdTokenClaimNames
|
||||||
import org.springframework.security.oauth2.jwt.Jwt
|
import org.springframework.security.oauth2.jwt.Jwt
|
||||||
import org.springframework.security.oauth2.jwt.ReactiveJwtDecoder
|
import org.springframework.security.oauth2.jwt.ReactiveJwtDecoder
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.security.config.web.server.oauth2.resourceserver
|
package org.springframework.security.config.web.server
|
||||||
|
|
||||||
import okhttp3.mockwebserver.MockResponse
|
import okhttp3.mockwebserver.MockResponse
|
||||||
import okhttp3.mockwebserver.MockWebServer
|
import okhttp3.mockwebserver.MockWebServer
|
||||||
|
@ -27,8 +27,6 @@ import org.springframework.context.annotation.Bean
|
||||||
import org.springframework.http.HttpHeaders
|
import org.springframework.http.HttpHeaders
|
||||||
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
|
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
|
||||||
import org.springframework.security.config.test.SpringTestRule
|
import org.springframework.security.config.test.SpringTestRule
|
||||||
import org.springframework.security.config.web.server.ServerHttpSecurity
|
|
||||||
import org.springframework.security.config.web.server.invoke
|
|
||||||
import org.springframework.security.oauth2.server.resource.introspection.NimbusReactiveOpaqueTokenIntrospector
|
import org.springframework.security.oauth2.server.resource.introspection.NimbusReactiveOpaqueTokenIntrospector
|
||||||
import org.springframework.security.oauth2.server.resource.introspection.ReactiveOpaqueTokenIntrospector
|
import org.springframework.security.oauth2.server.resource.introspection.ReactiveOpaqueTokenIntrospector
|
||||||
import org.springframework.security.web.server.SecurityWebFilterChain
|
import org.springframework.security.web.server.SecurityWebFilterChain
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.security.config.web.server.headers
|
package org.springframework.security.config.web.server
|
||||||
|
|
||||||
import org.junit.Rule
|
import org.junit.Rule
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
|
@ -22,9 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired
|
||||||
import org.springframework.context.ApplicationContext
|
import org.springframework.context.ApplicationContext
|
||||||
import org.springframework.context.annotation.Bean
|
import org.springframework.context.annotation.Bean
|
||||||
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
|
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
|
||||||
import org.springframework.security.config.web.server.invoke
|
|
||||||
import org.springframework.security.config.test.SpringTestRule
|
import org.springframework.security.config.test.SpringTestRule
|
||||||
import org.springframework.security.config.web.server.ServerHttpSecurity
|
|
||||||
import org.springframework.security.web.header.writers.ReferrerPolicyHeaderWriter
|
import org.springframework.security.web.header.writers.ReferrerPolicyHeaderWriter
|
||||||
import org.springframework.security.web.server.SecurityWebFilterChain
|
import org.springframework.security.web.server.SecurityWebFilterChain
|
||||||
import org.springframework.security.web.server.header.ReferrerPolicyServerHttpHeadersWriter
|
import org.springframework.security.web.server.header.ReferrerPolicyServerHttpHeadersWriter
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.security.config.web.server.headers
|
package org.springframework.security.config.web.server
|
||||||
|
|
||||||
import org.junit.Rule
|
import org.junit.Rule
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
|
@ -22,9 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired
|
||||||
import org.springframework.context.ApplicationContext
|
import org.springframework.context.ApplicationContext
|
||||||
import org.springframework.context.annotation.Bean
|
import org.springframework.context.annotation.Bean
|
||||||
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
|
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
|
||||||
import org.springframework.security.config.web.server.invoke
|
|
||||||
import org.springframework.security.config.test.SpringTestRule
|
import org.springframework.security.config.test.SpringTestRule
|
||||||
import org.springframework.security.config.web.server.ServerHttpSecurity
|
|
||||||
import org.springframework.security.web.server.SecurityWebFilterChain
|
import org.springframework.security.web.server.SecurityWebFilterChain
|
||||||
import org.springframework.security.web.server.header.XXssProtectionServerHttpHeadersWriter
|
import org.springframework.security.web.server.header.XXssProtectionServerHttpHeadersWriter
|
||||||
import org.springframework.test.web.reactive.server.WebTestClient
|
import org.springframework.test.web.reactive.server.WebTestClient
|
Loading…
Reference in New Issue