Skip to content

Commit 9d19435

Browse files
committed
Merge branch '6.0.x'
2 parents a939fa6 + 2629fb2 commit 9d19435

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/modules/ROOT/pages/migration/servlet/authentication.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The following steps relate to how to finish migrating authentication support.
44

55
== Propagate ``AuthenticationServiceException``s
66

7-
{security-api-url}org/springframework/security/web/authentication/AuthenticationFilter.html[`AuthenticationFilter`] propagates {security-api-url}org/springframework/security/authentication/AuthenticationServiceException.html[``AuthenticationServiceException``]s to the {security-api-url}org/springframework/security/authentication/AuthenticationEntryPoint.html[`AuthenticationEntryPoint`].
7+
{security-api-url}org/springframework/security/web/authentication/AuthenticationFilter.html[`AuthenticationFilter`] propagates {security-api-url}org/springframework/security/authentication/AuthenticationServiceException.html[``AuthenticationServiceException``]s to the {security-api-url}org/springframework/security/web/AuthenticationEntryPoint.html[`AuthenticationEntryPoint`].
88
Because ``AuthenticationServiceException``s represent a server-side error instead of a client-side error, in 6.0, this changes to propagate them to the container.
99

1010
So, if you opted into this behavior by setting `rethrowAuthenticationServiceException` to `true`, you can now remove it like so:
@@ -22,8 +22,8 @@ authenticationFilter.setAuthenticationFailureHandler(handler);
2222
.Kotlin
2323
[source,kotlin,role="secondary"]
2424
----
25-
val authenticationFilter: AuthenticationFilter = new AuthenticationFilter(...)
26-
val handler: AuthenticationEntryPointFailureHandler = new AuthenticationEntryPointFailureHandler(...)
25+
val authenticationFilter: AuthenticationFilter = AuthenticationFilter(...)
26+
val handler: AuthenticationEntryPointFailureHandler = AuthenticationEntryPointFailureHandler(...)
2727
handler.setRethrowAuthenticationServiceException(true)
2828
authenticationFilter.setAuthenticationFailureHandler(handler)
2929
----
@@ -56,8 +56,8 @@ authenticationFilter.setAuthenticationFailureHandler(handler);
5656
.Kotlin
5757
[source,kotlin,role="secondary"]
5858
----
59-
val authenticationFilter: AuthenticationFilter = new AuthenticationFilter(...)
60-
val handler: AuthenticationEntryPointFailureHandler = new AuthenticationEntryPointFailureHandler(...)
59+
val authenticationFilter: AuthenticationFilter = AuthenticationFilter(...)
60+
val handler: AuthenticationEntryPointFailureHandler = AuthenticationEntryPointFailureHandler(...)
6161
authenticationFilter.setAuthenticationFailureHandler(handler)
6262
----
6363

0 commit comments

Comments
 (0)