Enhance AuthenticationProcessingFilterEntryPoint and related classes, to support a property forcing the login page to be access via https even if the original intercepted request came in as http.
@ -155,7 +155,8 @@ public class CasAuthenticationProvider implements AuthenticationProvider,
@@ -155,7 +155,8 @@ public class CasAuthenticationProvider implements AuthenticationProvider,
@ -240,7 +243,7 @@ public abstract class AbstractProcessingFilter implements Filter,
@@ -240,7 +243,7 @@ public abstract class AbstractProcessingFilter implements Filter,
@ -249,7 +252,7 @@ public abstract class AbstractProcessingFilter implements Filter,
@@ -249,7 +252,7 @@ public abstract class AbstractProcessingFilter implements Filter,
@ -97,7 +97,7 @@ public class CasProcessingFilter extends AbstractProcessingFilter {
@@ -97,7 +97,7 @@ public class CasProcessingFilter extends AbstractProcessingFilter {
@ -35,8 +35,7 @@ public class ServiceProperties implements InitializingBean {
@@ -35,8 +35,7 @@ public class ServiceProperties implements InitializingBean {
@ -47,12 +46,15 @@ public class ServiceProperties implements InitializingBean {
@@ -47,12 +46,15 @@ public class ServiceProperties implements InitializingBean {
@ -65,13 +67,14 @@ public class ServiceProperties implements InitializingBean {
@@ -65,13 +67,14 @@ public class ServiceProperties implements InitializingBean {
@ -53,7 +54,11 @@ public class MockHttpServletRequest implements HttpServletRequest {
@@ -53,7 +54,11 @@ public class MockHttpServletRequest implements HttpServletRequest {
@ -235,8 +240,12 @@ public class MockHttpServletRequest implements HttpServletRequest {
@@ -235,8 +240,12 @@ public class MockHttpServletRequest implements HttpServletRequest {
thrownewUnsupportedOperationException("mock method not implemented");
}
publicvoidsetRequestURL(StringnewRequestURL){
requestURL=newRequestURL;
}
publicStringBuffergetRequestURL(){
thrownewUnsupportedOperationException("mock method not implemented");
returnnewStringBuffer(requestURL);
}
publicStringgetRequestedSessionId(){
@ -259,20 +268,32 @@ public class MockHttpServletRequest implements HttpServletRequest {
@@ -259,20 +268,32 @@ public class MockHttpServletRequest implements HttpServletRequest {
thrownewUnsupportedOperationException("mock method not implemented");
}
publicvoidsetScheme(StringnewScheme){
scheme=newScheme;
}
publicStringgetScheme(){
thrownewUnsupportedOperationException("mock method not implemented");
returnscheme;
}
publicbooleanisSecure(){
thrownewUnsupportedOperationException("mock method not implemented");
}
publicvoidsetServerName(StringnewServerName){
serverName=newServerName;
}
publicStringgetServerName(){
thrownewUnsupportedOperationException("mock method not implemented");
returnserverName;
}
publicvoidsetServerPort(intnewPort){
serverPort=newPort;
}
publicintgetServerPort(){
thrownewUnsupportedOperationException("mock method not implemented");
@ -128,6 +128,8 @@ public class SecurityEnforcementFilterTests extends TestCase {
@@ -128,6 +128,8 @@ public class SecurityEnforcementFilterTests extends TestCase {
// Setup our expectation that the filter chain will not be invoked, as access is denied
MockFilterChainchain=newMockFilterChain(false);
@ -146,7 +148,7 @@ public class SecurityEnforcementFilterTests extends TestCase {
@@ -146,7 +148,7 @@ public class SecurityEnforcementFilterTests extends TestCase {
@ -57,58 +57,97 @@ public class AuthenticationProcessingFilterEntryPointTests extends TestCase {
@@ -57,58 +57,97 @@ public class AuthenticationProcessingFilterEntryPointTests extends TestCase {