mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-12 13:23:29 +00:00
Removed original Java version of refactored http namespace tests.
This commit is contained in:
parent
34401416b0
commit
f7405cef82
@ -20,6 +20,7 @@ import org.springframework.security.web.authentication.ui.DefaultLoginPageGenera
|
|||||||
* @author Luke Taylor
|
* @author Luke Taylor
|
||||||
*/
|
*/
|
||||||
class OpenIDConfigTests extends AbstractHttpConfigTests {
|
class OpenIDConfigTests extends AbstractHttpConfigTests {
|
||||||
|
|
||||||
def openIDAndFormLoginWorkTogether() {
|
def openIDAndFormLoginWorkTogether() {
|
||||||
xml.http() {
|
xml.http() {
|
||||||
'openid-login'()
|
'openid-login'()
|
||||||
|
@ -339,28 +339,6 @@ class MiscHttpConfigTests extends AbstractHttpConfigTests {
|
|||||||
getFilter(ExceptionTranslationFilter).getAuthenticationEntryPoint() instanceof MockEntryPoint
|
getFilter(ExceptionTranslationFilter).getAuthenticationEntryPoint() instanceof MockEntryPoint
|
||||||
}
|
}
|
||||||
|
|
||||||
def disablingSessionProtectionRemovesSessionManagementFilterIfNoInvalidSessionUrlSet() {
|
|
||||||
httpAutoConfig {
|
|
||||||
'session-management'('session-fixation-protection': 'none')
|
|
||||||
}
|
|
||||||
createAppContext()
|
|
||||||
|
|
||||||
expect:
|
|
||||||
!(getFilters("/someurl")[8] instanceof SessionManagementFilter)
|
|
||||||
}
|
|
||||||
|
|
||||||
def disablingSessionProtectionRetainsSessionManagementFilterInvalidSessionUrlSet() {
|
|
||||||
httpAutoConfig {
|
|
||||||
'session-management'('session-fixation-protection': 'none', 'invalid-session-url': '/timeoutUrl')
|
|
||||||
}
|
|
||||||
createAppContext()
|
|
||||||
def filter = getFilters("/someurl")[8]
|
|
||||||
|
|
||||||
expect:
|
|
||||||
filter instanceof SessionManagementFilter
|
|
||||||
filter.invalidSessionUrl == '/timeoutUrl'
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* See SEC-750. If the http security post processor causes beans to be instantiated too eagerly, they way miss
|
* See SEC-750. If the http security post processor causes beans to be instantiated too eagerly, they way miss
|
||||||
* additional processing. In this method we have a UserDetailsService which is referenced from the namespace
|
* additional processing. In this method we have a UserDetailsService which is referenced from the namespace
|
||||||
|
@ -172,4 +172,26 @@ class SessionManagementConfigTests extends AbstractHttpConfigTests {
|
|||||||
mockResponse.redirectedUrl == "/max-exceeded";
|
mockResponse.redirectedUrl == "/max-exceeded";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def disablingSessionProtectionRemovesSessionManagementFilterIfNoInvalidSessionUrlSet() {
|
||||||
|
httpAutoConfig {
|
||||||
|
'session-management'('session-fixation-protection': 'none')
|
||||||
|
}
|
||||||
|
createAppContext()
|
||||||
|
|
||||||
|
expect:
|
||||||
|
!(getFilters("/someurl")[8] instanceof SessionManagementFilter)
|
||||||
|
}
|
||||||
|
|
||||||
|
def disablingSessionProtectionRetainsSessionManagementFilterInvalidSessionUrlSet() {
|
||||||
|
httpAutoConfig {
|
||||||
|
'session-management'('session-fixation-protection': 'none', 'invalid-session-url': '/timeoutUrl')
|
||||||
|
}
|
||||||
|
createAppContext()
|
||||||
|
def filter = getFilters("/someurl")[8]
|
||||||
|
|
||||||
|
expect:
|
||||||
|
filter instanceof SessionManagementFilter
|
||||||
|
filter.invalidSessionUrl == '/timeoutUrl'
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user