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( 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)