File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
src/main/java/org/woehlke/java/simpleworklist/config Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 110
110
## 3.0.0.rc.3
111
111
* #403 Task pagination is broken due to dependencies
112
112
* #406 Liquibase Database Schema Evolution of changes by migrating spring-boot from 2 to 3 and Jakarta EE 10 JPA
113
- * #407 update Last Login Date is broken
113
+ * fixed #407 update Last Login Date is broken
114
114
115
115
## 3.0.x
116
116
* #377 add List of URL (Patterns) to Documentation
Original file line number Diff line number Diff line change 20
20
import org .springframework .web .servlet .config .annotation .EnableWebMvc ;
21
21
22
22
import org .woehlke .java .simpleworklist .domain .security .access .ApplicationUserDetailsService ;
23
+ import org .woehlke .java .simpleworklist .domain .security .login .LoginSuccessHandler ;
23
24
24
25
@ Configuration
25
26
@ EnableAsync
@@ -38,14 +39,16 @@ public class WebSecurityConfig {
38
39
39
40
private final ApplicationUserDetailsService applicationUserDetailsService ;
40
41
private final SimpleworklistProperties simpleworklistProperties ;
42
+ private final LoginSuccessHandler loginSuccessHandler ;
41
43
42
44
@ Autowired
43
45
public WebSecurityConfig (
44
46
ApplicationUserDetailsService applicationUserDetailsService ,
45
- SimpleworklistProperties simpleworklistProperties
46
- ) {
47
+ SimpleworklistProperties simpleworklistProperties ,
48
+ LoginSuccessHandler loginSuccessHandler ) {
47
49
this .applicationUserDetailsService = applicationUserDetailsService ;
48
50
this .simpleworklistProperties = simpleworklistProperties ;
51
+ this .loginSuccessHandler = loginSuccessHandler ;
49
52
}
50
53
51
54
@ Bean
@@ -92,7 +95,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
92
95
.loginProcessingUrl (simpleworklistProperties .getWebSecurity ().getLoginProcessingUrl ())
93
96
.failureForwardUrl (simpleworklistProperties .getWebSecurity ().getFailureForwardUrl ())
94
97
.defaultSuccessUrl (simpleworklistProperties .getWebSecurity ().getDefaultSuccessUrl ())
95
- // .successHandler(authenticationSuccessHandler )
98
+ .successHandler (this . loginSuccessHandler )
96
99
.permitAll ()
97
100
)
98
101
.csrf ()
You can’t perform that action at this time.
0 commit comments