mirror of
https://github.com/spring-projects/spring-security.git
synced 2026-03-07 04:04:36 +00:00
Use site-url for reference link
Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
This commit is contained in:
parent
89260a3a9c
commit
41e3aeb246
@ -2,7 +2,7 @@
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
Spring Security's documentation can be https://docs.spring.io/spring-security/reference/spring-security-docs.zip[downloaded] as a zip file.
|
||||
Spring Security's documentation can be {site-url}/spring-security-docs.zip[downloaded] as a zip file.
|
||||
====
|
||||
|
||||
Spring Security is a framework that provides xref:features/authentication/index.adoc[authentication], xref:features/authorization/index.adoc[authorization], and xref:features/exploits/index.adoc[protection against common attacks].
|
||||
|
||||
@ -1,10 +1,9 @@
|
||||
[[migration]]
|
||||
= Migrating to 7.0
|
||||
:spring-security-reference-base-url: https://docs.spring.io/spring-security/reference
|
||||
|
||||
Spring Security 6.5 is the last release in the 6.x generation of Spring Security.
|
||||
It provides strategies for configuring breaking changes to use the 7.0 way before updating.
|
||||
We recommend you use 6.5 and {spring-security-reference-base-url}/6.5/migration-7/index.html[its preparation steps] to simplify updating to 7.0.
|
||||
We recommend you use 6.5 and {site-url}/6.5/migration-7/index.html[its preparation steps] to simplify updating to 7.0.
|
||||
|
||||
After updating to 6.5, follow this guide to perform any remaining migration or cleanup steps.
|
||||
|
||||
|
||||
@ -116,7 +116,7 @@ The following is an overview of the aspects of CSRF protection that have changed
|
||||
The changes in Spring Security 6 require additional configuration for single-page applications, and as such you may find the <<csrf-integration-javascript-spa>> section particularly useful.
|
||||
====
|
||||
|
||||
See the https://docs.spring.io/spring-security/reference/5.8/migration/servlet/exploits.html[Exploit Protection] section of the https://docs.spring.io/spring-security/reference/5.8/migration/index.html[Migration] chapter for more information on migrating a Spring Security 5 application.
|
||||
See the {site-url}/5.8/migration/servlet/exploits.html[Exploit Protection] section of the {site-url}/5.8/migration/index.html[Migration] chapter for more information on migrating a Spring Security 5 application.
|
||||
|
||||
[[csrf-token-repository]]
|
||||
== Persisting the `CsrfToken`
|
||||
|
||||
@ -44,7 +44,7 @@ public class WebSocketSecurityConfig {
|
||||
@Bean
|
||||
AuthorizationManager<Message<?>> messageAuthorizationManager(MessageMatcherDelegatingAuthorizationManager.Builder messages) {
|
||||
messages
|
||||
.simpDestMatchers("/user/**").hasRole("USER") // <3>
|
||||
.simpDestMatchers("/user/**").hasRole("USER"); // <3>
|
||||
|
||||
return messages.build();
|
||||
}
|
||||
@ -646,7 +646,7 @@ public class WebSecurityConfig {
|
||||
)
|
||||
.authorizeHttpRequests((authorize) -> authorize
|
||||
...
|
||||
)
|
||||
);
|
||||
...
|
||||
}
|
||||
}
|
||||
@ -711,4 +711,4 @@ If we use XML-based configuration, we can use thexref:servlet/appendix/namespace
|
||||
== Legacy WebSocket Configuration
|
||||
|
||||
`AbstractSecurityWebSocketMessageBrokerConfigurer` and `MessageSecurityMetadataSourceRegistry` are removed as of Spring Security 7.
|
||||
Please see https://docs.spring.io/spring-security/reference/5.8/migration/servlet/authorization.html#_use_authorizationmanager_for_message_security[the 5.8 migration guide] for guidance.
|
||||
Please see {site-url}/5.8/migration/servlet/authorization.html#_use_authorizationmanager_for_message_security[the 5.8 migration guide] for guidance.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user