|
@@ -31,8 +31,7 @@ ldap =
|
|
## Sets up an ldap authentication provider, optionally with an embedded ldap server
|
|
## Sets up an ldap authentication provider, optionally with an embedded ldap server
|
|
element ldap {ldap.attlist, empty}
|
|
element ldap {ldap.attlist, empty}
|
|
ldap.attlist &=
|
|
ldap.attlist &=
|
|
- ## The url indicates the server location. If omitted, an embedded server will be
|
|
|
|
- ## started, optionally with the configured port number.
|
|
|
|
|
|
+ ## The url indicates the server location. If omitted, an embedded server will be started, optionally with the configured port number.
|
|
(url | port)?
|
|
(url | port)?
|
|
|
|
|
|
ldap.attlist &=
|
|
ldap.attlist &=
|
|
@@ -40,8 +39,7 @@ ldap.attlist &=
|
|
[ a:defaultValue = "classpath:*.ldif" ] attribute ldif { xsd:string }?
|
|
[ a:defaultValue = "classpath:*.ldif" ] attribute ldif { xsd:string }?
|
|
|
|
|
|
intercept-methods =
|
|
intercept-methods =
|
|
- ## Can be used inside a bean definition to add a security interceptor to the bean and set up access
|
|
|
|
- ## configuration attributes for the bean's methods
|
|
|
|
|
|
+ ## Can be used inside a bean definition to add a security interceptor to the bean and set up access configuration attributes for the bean's methods
|
|
element intercept-methods {intercept-methods.attlist, protect+}
|
|
element intercept-methods {intercept-methods.attlist, protect+}
|
|
|
|
|
|
intercept-methods.attlist = empty
|
|
intercept-methods.attlist = empty
|
|
@@ -60,7 +58,7 @@ protect.attlist &=
|
|
|
|
|
|
http =
|
|
http =
|
|
## Container element for HTTP security configuration
|
|
## Container element for HTTP security configuration
|
|
- element http {http.attlist, (intercept-url+ & form-login? & http-basic? & logout? & concurrent-session-control? & remember-me?) }
|
|
|
|
|
|
+ element http {http.attlist, (intercept-url+ & form-login? & http-basic? & logout? & concurrent-session-control? & remember-me? & anonymous?) }
|
|
http.attlist &=
|
|
http.attlist &=
|
|
## Controls the eagerness with which an HTTP session is created.
|
|
## Controls the eagerness with which an HTTP session is created.
|
|
[ a:defaultValue = "ifRequired" ] attribute createSession {"ifRequired" | "always" | "never" }?
|
|
[ a:defaultValue = "ifRequired" ] attribute createSession {"ifRequired" | "always" | "never" }?
|
|
@@ -71,8 +69,7 @@ http.attlist &=
|
|
## Whether test URLs should be converted to lower case prior to comparing with defined path patterns.
|
|
## Whether test URLs should be converted to lower case prior to comparing with defined path patterns.
|
|
[ a:defaultValue = "true" ] attribute lowerCaseComparisons {"true" | "false"}?
|
|
[ a:defaultValue = "true" ] attribute lowerCaseComparisons {"true" | "false"}?
|
|
http.attlist &=
|
|
http.attlist &=
|
|
- ## Optional attribute specifying the ID of the AccessDecisionManager implementation which should be
|
|
|
|
- ## used for authorizing HTTP requests.
|
|
|
|
|
|
+ ## Optional attribute specifying the ID of the AccessDecisionManager implementation which should be used for authorizing HTTP requests.
|
|
attribute accessDecisionManager {xsd:string}?
|
|
attribute accessDecisionManager {xsd:string}?
|
|
|
|
|
|
|
|
|
|
@@ -80,15 +77,13 @@ intercept-url =
|
|
## Specifies the access attributes and/or filter list for a particular set of URLs.
|
|
## Specifies the access attributes and/or filter list for a particular set of URLs.
|
|
element intercept-url {intercept-url.attlist, empty}
|
|
element intercept-url {intercept-url.attlist, empty}
|
|
intercept-url.attlist &=
|
|
intercept-url.attlist &=
|
|
- ## The pattern which defines the URL path. The content will depend on the type set in the containing http element, so will
|
|
|
|
- ## default to ant path syntax.
|
|
|
|
|
|
+ ## The pattern which defines the URL path. The content will depend on the type set in the containing http element, so will default to ant path syntax.
|
|
attribute pattern {xsd:string}
|
|
attribute pattern {xsd:string}
|
|
intercept-url.attlist &=
|
|
intercept-url.attlist &=
|
|
## The access configuration attributes that apply for the configured path.
|
|
## The access configuration attributes that apply for the configured path.
|
|
attribute access {xsd:string}?
|
|
attribute access {xsd:string}?
|
|
- ## The filter list for the path. Currently can be set to "none" to remove a path from having any filters applied.
|
|
|
|
- ## The full filter stack (consisting of all defined filters, will be applied to any other paths).
|
|
|
|
intercept-url.attlist &=
|
|
intercept-url.attlist &=
|
|
|
|
+ ## The filter list for the path. Currently can be set to "none" to remove a path from having any filters applied. The full filter stack (consisting of all defined filters, will be applied to any other paths).
|
|
attribute filters {"none"}?
|
|
attribute filters {"none"}?
|
|
intercept-url.attlist &=
|
|
intercept-url.attlist &=
|
|
## Used to specify that a URL must be accessed over http or https
|
|
## Used to specify that a URL must be accessed over http or https
|
|
@@ -120,10 +115,7 @@ filter-chain-map.attlist &=
|
|
path-type
|
|
path-type
|
|
|
|
|
|
filter-chain =
|
|
filter-chain =
|
|
- ## Used within filter-chain-map to define a specific URL pattern and the list of filters
|
|
|
|
- ## which apply to the URLs matching that pattern. When multiple filter-chain elements are used within a
|
|
|
|
- ## filter-chain-map element, the most specific patterns must be placed at the top of the list, with
|
|
|
|
- ## most general ones at the bottom.
|
|
|
|
|
|
+ ## Used within filter-chain-map to define a specific URL pattern and the list of filters which apply to the URLs matching that pattern. When multiple filter-chain elements are used within a filter-chain-map element, the most specific patterns must be placed at the top of the list, with most general ones at the bottom.
|
|
element filter-chain {filter-chain.attlist, empty}
|
|
element filter-chain {filter-chain.attlist, empty}
|
|
filter-chain.attlist &=
|
|
filter-chain.attlist &=
|
|
attribute pattern {xsd:string}
|
|
attribute pattern {xsd:string}
|
|
@@ -137,8 +129,7 @@ http-basic.attlist &=
|
|
attribute realm {xsd:string}
|
|
attribute realm {xsd:string}
|
|
|
|
|
|
concurrent-session-control =
|
|
concurrent-session-control =
|
|
- ## Adds support for concurrent session control, allowing limits to be placed on the number of sessions a
|
|
|
|
- ## user can have.
|
|
|
|
|
|
+ ## Adds support for concurrent session control, allowing limits to be placed on the number of sessions a user can have.
|
|
element concurrent-session-control {concurrent-sessions.attlist, empty}
|
|
element concurrent-session-control {concurrent-sessions.attlist, empty}
|
|
concurrent-sessions.attlist &=
|
|
concurrent-sessions.attlist &=
|
|
attribute maxSessions {xsd:positiveInteger}?
|
|
attribute maxSessions {xsd:positiveInteger}?
|
|
@@ -149,10 +140,22 @@ concurrent-sessions.attlist &=
|
|
|
|
|
|
remember-me =
|
|
remember-me =
|
|
element remember-me {remember-me.attlist}
|
|
element remember-me {remember-me.attlist}
|
|
-
|
|
|
|
remember-me.attlist &=
|
|
remember-me.attlist &=
|
|
(attribute key {xsd:string} | (attribute tokenRepository {xsd:string} | attribute datasource {xsd:string}))
|
|
(attribute key {xsd:string} | (attribute tokenRepository {xsd:string} | attribute datasource {xsd:string}))
|
|
|
|
|
|
|
|
+anonymous =
|
|
|
|
+ ## Adds support for automatically granting all anonymous web requests a particular principal identity and a corresponding granted authority.
|
|
|
|
+ element anonymous {anonymous.attlist}
|
|
|
|
+anonymous.attlist &=
|
|
|
|
+ ## The key used between the provider and filter. This generally does not need to be set.
|
|
|
|
+ [ a:defaultValue = "doesNotMatter" ] attribute key {xsd:string}?
|
|
|
|
+anonymous.attlist &=
|
|
|
|
+ ## The username that should be assigned to the anonymous request. This allows the principal to be identified, which may be important for logging and auditing.
|
|
|
|
+ [ a:defaultValue = "anonymousUser" ] attribute username {xsd:string}?
|
|
|
|
+anonymous.attlist &=
|
|
|
|
+ ## The granted authority that should be assigned to the anonymous request. Commonly this is used to assign the anonymous request particular roles, which can subsequently be used in authorization decisions.
|
|
|
|
+ [ a:defaultValue = "ROLE_ANONYMOUS" ] attribute grantedAuthority {xsd:string}?
|
|
|
|
+
|
|
authentication-provider =
|
|
authentication-provider =
|
|
element authentication-provider {authentication-provider.attlist, (user-service | jdbc-user-service)}
|
|
element authentication-provider {authentication-provider.attlist, (user-service | jdbc-user-service)}
|
|
authentication-provider.attlist &= empty
|
|
authentication-provider.attlist &= empty
|