Skip to content

Commit e213ca2

Browse files
committed
Fix login navigation in booking-faces
1 parent 2b74e62 commit e213ca2

File tree

1 file changed

+5
-1
lines changed
  • booking-faces/src/main/java/org/springframework/webflow/samples/booking/config

1 file changed

+5
-1
lines changed

booking-faces/src/main/java/org/springframework/webflow/samples/booking/config/SecurityConfig.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
66
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
77
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
8+
import org.springframework.security.web.savedrequest.HttpSessionRequestCache;
89

910
@Configuration
1011
@EnableWebSecurity
@@ -21,7 +22,10 @@ protected void configure(HttpSecurity http) throws Exception {
2122
.and()
2223
.logout()
2324
.logoutUrl("/spring/logout")
24-
.logoutSuccessUrl("/spring/logoutSuccess");
25+
.logoutSuccessUrl("/spring/logoutSuccess")
26+
.and()
27+
.requestCache()
28+
.requestCache(new HttpSessionRequestCache());
2529
}
2630

2731
@Override

0 commit comments

Comments
 (0)