Skip to content

Commit 9255a83

Browse files
committed
BAEL-315 Removing custom success handler in favor of the default redirect.
1 parent c755175 commit 9255a83

3 files changed

Lines changed: 1 addition & 56 deletions

File tree

‎spring-cloud/spring-cloud-bootstrap/gateway/src/main/java/com/baeldung/spring/cloud/bootstrap/gateway/CustomAuthenticationHandler.java‎

Lines changed: 0 additions & 54 deletions
This file was deleted.

‎spring-cloud/spring-cloud-bootstrap/gateway/src/main/java/com/baeldung/spring/cloud/bootstrap/gateway/SecurityConfig.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ protected void configure(HttpSecurity http) throws Exception {
2828
.anyRequest().authenticated()
2929
.and()
3030
.formLogin()
31-
.successHandler(new CustomAuthenticationHandler("/resource/hello/user"))
3231
.and()
3332
.logout().permitAll()
3433
.logoutSuccessUrl("/resource/hello/cloud").permitAll()

spring-cloud/spring-cloud-bootstrap/gateway/src/main/java/com/baeldung/spring/cloud/bootstrap/gateway/SessionSavingZuulPreFilter.java renamed to spring-cloud/spring-cloud-bootstrap/gateway/src/main/java/com/baeldung/spring/cloud/bootstrap/gateway/filter/SessionSavingZuulPreFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.baeldung.spring.cloud.bootstrap.gateway;
1+
package com.baeldung.spring.cloud.bootstrap.gateway.filter;
22

33
import com.netflix.zuul.ZuulFilter;
44
import com.netflix.zuul.context.RequestContext;

0 commit comments

Comments
 (0)