File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
module-auth/src/main/java/com/inhabas/api/auth/config
resource-server/src/main/java/com/inhabas/api/config Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change 1818import com .inhabas .api .auth .domain .oauth2 .handler .Oauth2AuthenticationFailureHandler ;
1919import com .inhabas .api .auth .domain .oauth2 .handler .Oauth2AuthenticationSuccessHandler ;
2020
21- @ Order (0 ) // 인증 관련 security filter chain 은 우선순위가 가장 높아야 함.
2221@ Configuration
2322@ EnableWebSecurity
2423@ RequiredArgsConstructor
@@ -55,6 +54,7 @@ public class AuthSecurityConfig {
5554 * 따라서 critical 한 url 에 대해서 OAuth2 인증이 완료된 세션에 한해서만 허용.
5655 */
5756 @ Bean
57+ @ Order (0 ) // 인증 관련 security filter chain 은 우선순위가 가장 높아야 함.
5858 public SecurityFilterChain filterChain (HttpSecurity http ) throws Exception {
5959
6060 http .securityMatcher ("/login/**" )
Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ public class WebSecurityConfig {
6767 private static final String [] AUTH_WHITELIST_CONTEST_BOARD = {"/contest/count" };
6868
6969 @ Configuration
70- @ Order (1 )
7170 @ EnableMethodSecurity (jsr250Enabled = true )
7271 @ EnableWebSecurity
7372 @ RequiredArgsConstructor
You can’t perform that action at this time.
0 commit comments