From f76f1b340f3d37d2fe78421c8863430a652c51bb Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Mon, 10 Mar 2008 10:46:23 +0000 Subject: [PATCH] SEC-707: Make purpose of form-login attributes clearer. Renamed login-url to login-processing-url --- .../security/config/FormLoginBeanDefinitionParser.java | 2 +- .../org/springframework/security/config/spring-security-2.0.rnc | 2 +- .../org/springframework/security/config/spring-security-2.0.xsd | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/org/springframework/security/config/FormLoginBeanDefinitionParser.java b/core/src/main/java/org/springframework/security/config/FormLoginBeanDefinitionParser.java index ef59b6a420..f44746b007 100644 --- a/core/src/main/java/org/springframework/security/config/FormLoginBeanDefinitionParser.java +++ b/core/src/main/java/org/springframework/security/config/FormLoginBeanDefinitionParser.java @@ -23,7 +23,7 @@ import org.apache.commons.logging.LogFactory; public class FormLoginBeanDefinitionParser implements BeanDefinitionParser { protected final Log logger = LogFactory.getLog(getClass()); - static final String ATT_LOGIN_URL = "login-url"; + static final String ATT_LOGIN_URL = "login-processing-url"; static final String DEF_LOGIN_URL = "/j_spring_security_check"; static final String ATT_LOGIN_PAGE = "login-page"; diff --git a/core/src/main/resources/org/springframework/security/config/spring-security-2.0.rnc b/core/src/main/resources/org/springframework/security/config/spring-security-2.0.rnc index 257d5d30fc..448563f0af 100644 --- a/core/src/main/resources/org/springframework/security/config/spring-security-2.0.rnc +++ b/core/src/main/resources/org/springframework/security/config/spring-security-2.0.rnc @@ -225,7 +225,7 @@ form-login = element form-login {form-login.attlist, empty} form-login.attlist &= ## The URL that the login form is posted to. If unspecified, it defaults to /j_spring_security_check. - attribute login-url {xsd:string}? + attribute login-processing-url {xsd:string}? form-login.attlist &= ## The URL that will be redirected to after successful authentication, if the user's previous action could not be resumed. This generally happens if the user visits a login page without having first requested a secured operation that triggers authentication. If unspecified, defaults to the root of the application. attribute default-target-url {xsd:string}? diff --git a/core/src/main/resources/org/springframework/security/config/spring-security-2.0.xsd b/core/src/main/resources/org/springframework/security/config/spring-security-2.0.xsd index 2d808b9565..2a996fd07d 100644 --- a/core/src/main/resources/org/springframework/security/config/spring-security-2.0.xsd +++ b/core/src/main/resources/org/springframework/security/config/spring-security-2.0.xsd @@ -579,7 +579,7 @@ - + The URL that the login form is posted to. If unspecified, it defaults to /j_spring_security_check.