diff --git a/core/src/main/resources/org/springframework/security/config/spring-security-2.5.rnc b/core/src/main/resources/org/springframework/security/config/spring-security-2.5.rnc index 2a43a0b8b4..6d662ca24b 100644 --- a/core/src/main/resources/org/springframework/security/config/spring-security-2.5.rnc +++ b/core/src/main/resources/org/springframework/security/config/spring-security-2.5.rnc @@ -226,8 +226,11 @@ http.attlist &= http.attlist &= use-expressions? http.attlist &= - ## Controls the eagerness with which an HTTP session is created. If not set, defaults to "ifRequired". + ## Controls the eagerness with which an HTTP session is created. If not set, defaults to "ifRequired". Note that if a custom SecurityContextRepository is set using security-context-repository-ref, then the only value which can be set is "always". Otherwise the session creation behaviour will be determined by the repository bean implementation. attribute create-session {"ifRequired" | "always" | "never" }? +http.attlist &= + ## A reference to a SecurityContextRepository bean. This can be used to customize the way the SecurityContext is stored between requests. + attribute security-context-repository-ref {xsd:string}? http.attlist &= ## The path format used to define the paths in child elements. path-type? diff --git a/core/src/main/resources/org/springframework/security/config/spring-security-2.5.xsd b/core/src/main/resources/org/springframework/security/config/spring-security-2.5.xsd index c298b5808a..e3c31f8203 100644 --- a/core/src/main/resources/org/springframework/security/config/spring-security-2.5.xsd +++ b/core/src/main/resources/org/springframework/security/config/spring-security-2.5.xsd @@ -787,7 +787,10 @@ Controls the eagerness with which an HTTP session is created. If not set, - defaults to "ifRequired". + defaults to "ifRequired". Note that if a custom SecurityContextRepository is set using + security-context-repository-ref, then the only value which can be set is "always". + Otherwise the session creation behaviour will be determined by the repository bean + implementation. @@ -797,6 +800,12 @@ + + + A reference to a SecurityContextRepository bean. This can be used to + customize the way the SecurityContext is stored between requests. + + Defines the type of pattern used to specify URL paths (either JDK