Skip to content

Commit 2731173

Browse files
committed
refactor: use nested builders for logout() configuration
Part of #1149
1 parent 64c428f commit 2731173

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/ru/mystamps/web/support/spring/security/SecurityConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,12 @@ protected void configure(HttpSecurity http) throws Exception {
142142
.defaultSuccessUrl(SiteUrl.INDEX_PAGE, true)
143143
.permitAll()
144144
)
145-
.logout()
145+
.logout(logout -> logout
146146
.logoutUrl(AccountUrl.LOGOUT_PAGE)
147147
.logoutSuccessUrl(SiteUrl.INDEX_PAGE)
148148
.invalidateHttpSession(true)
149149
.permitAll()
150-
.and()
150+
)
151151
.exceptionHandling()
152152
.accessDeniedHandler(getAccessDeniedHandler())
153153
// This entry point handles when you request a protected page and you are

0 commit comments

Comments
 (0)