Skip to content

Commit 6191255

Browse files
Thomasrludomikula
Thomasr
authored andcommitted
Fix unauthenticated redirection
1 parent 411dd7a commit 6191255

File tree

1 file changed

+5
-0
lines changed
  • server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/framework/security

1 file changed

+5
-0
lines changed

server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/framework/security/SecurityConfig.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ SecurityWebFilterChain securityWebFilterChain(ServerHttpSecurity http) {
7777
.anonymous(anonymous -> anonymous.principal(createAnonymousUser()))
7878
.httpBasic(Customizer.withDefaults())
7979
.authorizeExchange(customizer -> customizer
80+
.matchers(
81+
ServerWebExchangeMatchers.pathMatchers(HttpMethod.GET, APPLICATION_URL + "/home"),
82+
ServerWebExchangeMatchers.pathMatchers(HttpMethod.GET, NewUrl.APPLICATION_URL + "/home")
83+
)
84+
.authenticated()
8085
.matchers(
8186
ServerWebExchangeMatchers.pathMatchers(HttpMethod.POST, CUSTOM_AUTH + "/otp/send"), // sms verification
8287
ServerWebExchangeMatchers.pathMatchers(HttpMethod.POST, CUSTOM_AUTH + "/phone/login"),

0 commit comments

Comments
 (0)