Skip to content

Commit 8cbb188

Browse files
committed
Fix links to Spring Security in the reference guide
Closes gh-28135
1 parent bc973d7 commit 8cbb188

File tree

6 files changed

+27
-26
lines changed

6 files changed

+27
-26
lines changed

src/docs/asciidoc/integration.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ this application context.
961961

962962
NOTE: The preceding example does not show a flexible kind of security infrastructure. For
963963
more options as far as security is concerned, have a look at the Spring Security project
964-
at https://projects.spring.io/spring-security/.
964+
at https://spring.io/projects/spring-security/.
965965

966966

967967

src/docs/asciidoc/web/webflux-cors.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[[webflux-cors]]
22
= CORS
3+
:doc-spring-security: {doc-root}/spring-security/reference
34
[.small]#<<web.adoc#mvc-cors, Web MVC>>#
45

56
Spring WebFlux lets you handle CORS (Cross-Origin Resource Sharing). This section
@@ -309,9 +310,8 @@ You can apply CORS support through the built-in
309310
good fit with <<webflux-fn, functional endpoints>>.
310311

311312
NOTE: If you try to use the `CorsFilter` with Spring Security, keep in mind that Spring
312-
Security has
313-
https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#cors[built-in support]
314-
for CORS.
313+
Security has {doc-spring-security}/servlet/integrations/cors.html[built-in support] for
314+
CORS.
315315

316316
To configure the filter, you can declare a `CorsWebFilter` bean and pass a
317317
`CorsConfigurationSource` to its constructor, as the following example shows:

src/docs/asciidoc/web/webflux.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[[webflux]]
22
= Spring WebFlux
3-
:doc-spring-security: {doc-root}/spring-security/site/docs/current/reference
3+
:doc-spring-security: {doc-root}/spring-security/reference
44

55
The original web framework included in the Spring Framework, Spring Web MVC, was
66
purpose-built for the Servlet API and Servlet containers. The reactive-stack web framework,
@@ -3485,14 +3485,14 @@ include::webflux-cors.adoc[leveloffset=+1]
34853485
== Web Security
34863486
[.small]#<<web.adoc#mvc-web-security, Web MVC>>#
34873487

3488-
The https://projects.spring.io/spring-security/[Spring Security] project provides support
3488+
The https://spring.io/projects/spring-security[Spring Security] project provides support
34893489
for protecting web applications from malicious exploits. See the Spring Security
34903490
reference documentation, including:
34913491

3492-
* {doc-spring-security}/html5/#jc-webflux[WebFlux Security]
3493-
* {doc-spring-security}/html5/#test-webflux[WebFlux Testing Support]
3494-
* {doc-spring-security}/html5/#csrf[CSRF Protection]
3495-
* {doc-spring-security}/html5/#headers[Security Response Headers]
3492+
* {doc-spring-security}/reactive/configuration/webflux.html[WebFlux Security]
3493+
* {doc-spring-security}/reactive/test/index.html[WebFlux Testing Support]
3494+
* {doc-spring-security}/features/exploits/csrf.html#csrf-protection[CSRF protection]
3495+
* {doc-spring-security}/features/exploits/headers.html[Security Response Headers]
34963496

34973497
include::webflux-view.adoc[leveloffset=+1]
34983498

src/docs/asciidoc/web/webmvc-cors.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[[mvc-cors]]
22
= CORS
3+
:doc-spring-security: {doc-root}/spring-security/reference
34
[.small]#<<web-reactive.adoc#webflux-cors, WebFlux>>#
45

56
Spring MVC lets you handle CORS (Cross-Origin Resource Sharing). This section
@@ -334,13 +335,12 @@ as the following example shows:
334335
You can apply CORS support through the built-in
335336
{api-spring-framework}/web/filter/CorsFilter.html[`CorsFilter`].
336337

337-
NOTE: If you try to use the `CorsFilter` with Spring Security, keep in mind that
338-
Spring Security has
339-
https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#cors[built-in support]
340-
for CORS.
338+
NOTE: If you try to use the `CorsFilter` with Spring Security, keep in mind that Spring
339+
Security has {doc-spring-security}/servlet/integrations/cors.html[built-in support] for
340+
CORS.
341341

342-
To configure the filter, pass a
343-
`CorsConfigurationSource` to its constructor, as the following example shows:
342+
To configure the filter, pass a `CorsConfigurationSource` to its constructor, as the
343+
following example shows:
344344

345345
[source,java,indent=0,subs="verbatim",role="primary"]
346346
.Java

src/docs/asciidoc/web/webmvc.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[[mvc]]
22
= Spring Web MVC
3-
:doc-spring-security: {doc-root}/spring-security/site/docs/current/reference
3+
:doc-spring-security: {doc-root}/spring-security/reference
44

55
Spring Web MVC is the original web framework built on the Servlet API and has been included
66
in the Spring Framework from the very beginning. The formal name, "`Spring Web MVC,`"
@@ -4829,14 +4829,14 @@ include::webmvc-cors.adoc[leveloffset=+1]
48294829
== Web Security
48304830
[.small]#<<web-reactive.adoc#webflux-web-security, WebFlux>>#
48314831

4832-
The https://projects.spring.io/spring-security/[Spring Security] project provides support
4832+
The https://spring.io/projects/spring-security[Spring Security] project provides support
48334833
for protecting web applications from malicious exploits. See the Spring Security
48344834
reference documentation, including:
48354835

4836-
* {doc-spring-security}/html5/#mvc[Spring MVC Security]
4837-
* {doc-spring-security}/html5/#test-mockmvc[Spring MVC Test Support]
4838-
* {doc-spring-security}/html5/#csrf[CSRF protection]
4839-
* {doc-spring-security}/html5/#headers[Security Response Headers]
4836+
* {doc-spring-security}/servlet/integrations/mvc.html[Spring MVC Security]
4837+
* {doc-spring-security}/servlet/test/mockmvc/setup.html[Spring MVC Test Support]
4838+
* {doc-spring-security}/features/exploits/csrf.html#csrf-protection[CSRF protection]
4839+
* {doc-spring-security}/features/exploits/headers.html[Security Response Headers]
48404840

48414841
https://hdiv.org/[HDIV] is another web security framework that integrates with Spring MVC.
48424842

src/docs/asciidoc/web/websocket.adoc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[[websocket]]
22
= WebSockets
3-
:doc-spring-security: {doc-root}/spring-security/site/docs/current/reference
3+
:doc-spring-security: {doc-root}/spring-security/reference
44
[.small]#<<web-reactive.adoc#webflux-websocket, WebFlux>>#
55

66
This part of the reference documentation covers support for Servlet stack, WebSocket
@@ -627,10 +627,11 @@ response. By default, the Spring Security Java configuration sets it to `DENY`.
627627
In 3.2, the Spring Security XML namespace does not set that header by default
628628
but can be configured to do so. In the future, it may set it by default.
629629
630-
See {doc-spring-security}/htmlsingle/#headers[Default Security Headers]
630+
See {doc-spring-security}/features/exploits/headers.html#headers-default[Default Security Headers]
631631
of the Spring Security documentation for details on how to configure the
632632
setting of the `X-Frame-Options` header. You can also see
633-
https://jira.spring.io/browse/SEC-2501[SEC-2501] for additional background.
633+
https://github.com/spring-projects/spring-security/issues/2718[gh-2718]
634+
for additional background.
634635
====
635636

636637
If your application adds the `X-Frame-Options` response header (as it should!)
@@ -1810,7 +1811,7 @@ its own implementation of `WebSocketMessageBrokerConfigurer` that is marked with
18101811
=== Authorization
18111812

18121813
Spring Security provides
1813-
https://docs.spring.io/spring-security/reference/servlet/integrations/websocket.html#websocket-authorization[WebSocket sub-protocol authorization]
1814+
{doc-spring-security}/servlet/integrations/websocket.html#websocket-authorization[WebSocket sub-protocol authorization]
18141815
that uses a `ChannelInterceptor` to authorize messages based on the user header in them.
18151816
Also, Spring Session provides
18161817
https://docs.spring.io/spring-session/reference/web-socket.html[WebSocket integration]

0 commit comments

Comments
 (0)