From d808392c49a9d5684b2e89c5554202c41009aa64 Mon Sep 17 00:00:00 2001 From: KWY Date: Sun, 16 Jun 2024 18:15:34 +0900 Subject: [PATCH 1/2] =?UTF-8?q?#266=5FT-10860=20[feat]=20security=20?= =?UTF-8?q?=EB=82=B4=20add=20auth=20endpoint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/sopt/makers/operation/config/SecurityConfig.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/operation-auth/src/main/java/org/sopt/makers/operation/config/SecurityConfig.java b/operation-auth/src/main/java/org/sopt/makers/operation/config/SecurityConfig.java index 86d20e21..a8ca9ecb 100644 --- a/operation-auth/src/main/java/org/sopt/makers/operation/config/SecurityConfig.java +++ b/operation-auth/src/main/java/org/sopt/makers/operation/config/SecurityConfig.java @@ -60,6 +60,8 @@ private void setHttp(HttpSecurity http) throws Exception { authorizeHttpRequests .requestMatchers(new AntPathRequestMatcher("/api/v1/auth/*")).permitAll() .requestMatchers(new AntPathRequestMatcher("/api/v1/test/**")).permitAll() + .requestMatchers(new AntPathRequestMatcher("/api/v1/authorize")).permitAll() + .requestMatchers(new AntPathRequestMatcher("/api/v1/token")).permitAll() .requestMatchers(new AntPathRequestMatcher("/error")).permitAll() .anyRequest().authenticated()) .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS) From 66b89d9201f8af72ab4834ae1e1b883fe65b4f47 Mon Sep 17 00:00:00 2001 From: KWY Date: Sun, 16 Jun 2024 18:17:51 +0900 Subject: [PATCH 2/2] =?UTF-8?q?#266=5FT-10860=20[chore]=20auth=20controlle?= =?UTF-8?q?r=20=EB=82=B4=20tag=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/org/sopt/makers/operation/auth/api/AuthApi.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/operation-api/src/main/java/org/sopt/makers/operation/auth/api/AuthApi.java b/operation-api/src/main/java/org/sopt/makers/operation/auth/api/AuthApi.java index 7ca616c9..2b6846f5 100644 --- a/operation-api/src/main/java/org/sopt/makers/operation/auth/api/AuthApi.java +++ b/operation-api/src/main/java/org/sopt/makers/operation/auth/api/AuthApi.java @@ -3,11 +3,13 @@ import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.responses.ApiResponse; import io.swagger.v3.oas.annotations.security.SecurityRequirement; +import io.swagger.v3.oas.annotations.tags.Tag; import org.sopt.makers.operation.auth.dto.request.AccessTokenRequest; import org.sopt.makers.operation.dto.BaseResponse; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RequestParam; +@Tag(name = "SSO 기반 인증 관련 API") public interface AuthApi { @Operation(