Skip to content

Commit

Permalink
Fix: add login redirection url permission
Browse files Browse the repository at this point in the history
  • Loading branch information
nampongo committed Mar 15, 2024
1 parent 59ee169 commit 56a0688
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
})
.authorizeHttpRequests(authorizeHttpRequests -> authorizeHttpRequests
.requestMatchers( "/oauth2/**").permitAll()
.requestMatchers("/login/oauth2/code/**").permitAll()
.anyRequest().authenticated()
)
.sessionManagement(sessionManagement ->
Expand All @@ -54,7 +55,6 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
.redirectionEndpoint(redirection -> redirection
.baseUri("/login/oauth2/code/**")
)

.userInfoEndpoint(userInfo -> userInfo.userService(customOAuth2UserService))
.successHandler(oAuth2AuthenticationSuccessHandler)
);
Expand Down

0 comments on commit 56a0688

Please sign in to comment.