Skip to content

Commit a884c3c

Browse files
committed
Address XsdDocumentedTests Errors
Issue gh-16775
1 parent 0091cf6 commit a884c3c

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

config/src/main/resources/org/springframework/security/config/spring-security-6.5.rnc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ http.attlist &=
346346
## Allows a RequestMatcher instance to be used, as an alternative to pattern-matching.
347347
attribute request-matcher-ref { xsd:token }?
348348
http.attlist &=
349+
## Optional attribute specifying the ID of the RequestMatcher implementation used to decide whether to redirect a request to HTTPS
349350
attribute redirect-to-https-request-matcher-ref { xsd:token }?
350351
http.attlist &=
351352
## A legacy attribute which automatically registers a login form, BASIC authentication and a logout URL and logout services. If unspecified, defaults to "false". We'd recommend you avoid using this and instead explicitly configure the services you require.
@@ -1351,4 +1352,4 @@ position =
13511352
## The explicit position at which the custom-filter should be placed in the chain. Use if you are replacing a standard filter.
13521353
attribute position {named-security-filter}
13531354

1354-
named-security-filter = "FIRST" | "DISABLE_ENCODE_URL_FILTER" | "FORCE_EAGER_SESSION_FILTER" | "CHANNEL_FILTER" | "SECURITY_CONTEXT_FILTER" | "CONCURRENT_SESSION_FILTER" | "WEB_ASYNC_MANAGER_FILTER" | "HEADERS_FILTER" | "CORS_FILTER" | "SAML2_LOGOUT_REQUEST_FILTER" | "SAML2_LOGOUT_RESPONSE_FILTER" | "CSRF_FILTER" | "SAML2_LOGOUT_FILTER" | "LOGOUT_FILTER" | "OAUTH2_AUTHORIZATION_REQUEST_FILTER" | "SAML2_AUTHENTICATION_REQUEST_FILTER" | "X509_FILTER" | "PRE_AUTH_FILTER" | "CAS_FILTER" | "OAUTH2_LOGIN_FILTER" | "SAML2_AUTHENTICATION_FILTER" | "FORM_LOGIN_FILTER" | "DEFAULT_RESOURCES_FILTER" | "LOGIN_PAGE_FILTER" | "LOGOUT_PAGE_FILTER" | "DIGEST_AUTH_FILTER" | "BEARER_TOKEN_AUTH_FILTER" | "BASIC_AUTH_FILTER" | "REQUEST_CACHE_FILTER" | "SERVLET_API_SUPPORT_FILTER" | "JAAS_API_SUPPORT_FILTER" | "REMEMBER_ME_FILTER" | "ANONYMOUS_FILTER" | "OAUTH2_AUTHORIZATION_CODE_GRANT_FILTER" | "WELL_KNOWN_CHANGE_PASSWORD_REDIRECT_FILTER" | "SESSION_MANAGEMENT_FILTER" | "EXCEPTION_TRANSLATION_FILTER" | "FILTER_SECURITY_INTERCEPTOR" | "SWITCH_USER_FILTER" | "LAST"
1355+
named-security-filter = "FIRST" | "DISABLE_ENCODE_URL_FILTER" | "FORCE_EAGER_SESSION_FILTER" | "CHANNEL_FILTER" | "HTTPS_REDIRECT_FILTER" | "SECURITY_CONTEXT_FILTER" | "CONCURRENT_SESSION_FILTER" | "WEB_ASYNC_MANAGER_FILTER" | "HEADERS_FILTER" | "CORS_FILTER" | "SAML2_LOGOUT_REQUEST_FILTER" | "SAML2_LOGOUT_RESPONSE_FILTER" | "CSRF_FILTER" | "SAML2_LOGOUT_FILTER" | "LOGOUT_FILTER" | "OAUTH2_AUTHORIZATION_REQUEST_FILTER" | "SAML2_AUTHENTICATION_REQUEST_FILTER" | "X509_FILTER" | "PRE_AUTH_FILTER" | "CAS_FILTER" | "OAUTH2_LOGIN_FILTER" | "SAML2_AUTHENTICATION_FILTER" | "FORM_LOGIN_FILTER" | "DEFAULT_RESOURCES_FILTER" | "LOGIN_PAGE_FILTER" | "LOGOUT_PAGE_FILTER" | "DIGEST_AUTH_FILTER" | "BEARER_TOKEN_AUTH_FILTER" | "BASIC_AUTH_FILTER" | "REQUEST_CACHE_FILTER" | "SERVLET_API_SUPPORT_FILTER" | "JAAS_API_SUPPORT_FILTER" | "REMEMBER_ME_FILTER" | "ANONYMOUS_FILTER" | "OAUTH2_AUTHORIZATION_CODE_GRANT_FILTER" | "WELL_KNOWN_CHANGE_PASSWORD_REDIRECT_FILTER" | "SESSION_MANAGEMENT_FILTER" | "EXCEPTION_TRANSLATION_FILTER" | "FILTER_SECURITY_INTERCEPTOR" | "SWITCH_USER_FILTER" | "LAST"

config/src/main/resources/org/springframework/security/config/spring-security-6.5.xsd

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,13 @@
12421242
</xs:documentation>
12431243
</xs:annotation>
12441244
</xs:attribute>
1245-
<xs:attribute name="redirect-to-https-request-matcher-ref" type="xs:token"/>
1245+
<xs:attribute name="redirect-to-https-request-matcher-ref" type="xs:token">
1246+
<xs:annotation>
1247+
<xs:documentation>Optional attribute specifying the ID of the RequestMatcher implementation used to decide
1248+
whether to redirect a request to HTTPS
1249+
</xs:documentation>
1250+
</xs:annotation>
1251+
</xs:attribute>
12461252
<xs:attribute name="auto-config" type="xs:boolean">
12471253
<xs:annotation>
12481254
<xs:documentation>A legacy attribute which automatically registers a login form, BASIC authentication and a
@@ -3789,6 +3795,7 @@
37893795
<xs:enumeration value="DISABLE_ENCODE_URL_FILTER"/>
37903796
<xs:enumeration value="FORCE_EAGER_SESSION_FILTER"/>
37913797
<xs:enumeration value="CHANNEL_FILTER"/>
3798+
<xs:enumeration value="HTTPS_REDIRECT_FILTER"/>
37923799
<xs:enumeration value="SECURITY_CONTEXT_FILTER"/>
37933800
<xs:enumeration value="CONCURRENT_SESSION_FILTER"/>
37943801
<xs:enumeration value="WEB_ASYNC_MANAGER_FILTER"/>

docs/modules/ROOT/pages/servlet/appendix/namespace/http.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ If no pattern is defined, all requests will be matched, so the most specific pat
118118
Sets the realm name used for basic authentication (if enabled).
119119
Corresponds to the `realmName` property on `BasicAuthenticationEntryPoint`.
120120

121-
[[nsa-redirect-to-https-request-matcher-ref]]
121+
[[nsa-http-redirect-to-https-request-matcher-ref]]
122122
* **redirect-to-https-request-matcher-ref**
123123
A reference to a bean that implements `RequestMatcher` that will determine which requests must redirect to HTTPS.
124124
This is helpful when, for example, wanting to run HTTP locally and HTTPS in production using a request header.

0 commit comments

Comments
 (0)