From 3004b2c691cbb5e0cd494cf878c1d5bf874741f2 Mon Sep 17 00:00:00 2001 From: vvaaddrr Date: Wed, 15 May 2024 16:28:00 +0300 Subject: [PATCH] feedback fix --- .../ROOT/pages/servlet/authentication/passwords/digest.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/modules/ROOT/pages/servlet/authentication/passwords/digest.adoc b/docs/modules/ROOT/pages/servlet/authentication/passwords/digest.adoc index 6f88bab9651..962a7523da0 100644 --- a/docs/modules/ROOT/pages/servlet/authentication/passwords/digest.adoc +++ b/docs/modules/ROOT/pages/servlet/authentication/passwords/digest.adoc @@ -50,12 +50,14 @@ DigestAuthenticationEntryPoint authenticationEntryPoint() { DigestAuthenticationEntryPoint result = new DigestAuthenticationEntryPoint(); result.setRealmName("My App Realm"); result.setKey("3028472b-da34-4501-bfd8-a355c42bdf92"); + return result; } DigestAuthenticationFilter digestAuthenticationFilter() { DigestAuthenticationFilter result = new DigestAuthenticationFilter(); result.setUserDetailsService(userDetailsService); result.setAuthenticationEntryPoint(authenticationEntryPoint()); + return result; } @Bean @@ -63,7 +65,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http // ... .exceptionHandling(e -> e.authenticationEntryPoint(authenticationEntryPoint())) - .addFilterAfter(digestAuthenticationFilter(), ExceptionTranslationFilter.class); + .addFilter(digestAuthenticationFilter()); return http.build(); } ----