diff --git a/src/main/java/com/semicolon/gspass/controller/TeacherController.java b/src/main/java/com/semicolon/gspass/controller/TeacherController.java index 752edf6..0545917 100644 --- a/src/main/java/com/semicolon/gspass/controller/TeacherController.java +++ b/src/main/java/com/semicolon/gspass/controller/TeacherController.java @@ -63,7 +63,7 @@ public SchoolInformationResponse getInfo() { } @PostMapping("/refresh") - @Operation(summary = "관리자 토큰 리프레시", security = @SecurityRequirement(name = "Authorization")) + @Operation(summary = "관리자 토큰 리프레시") public TokenResponse tokenRefresh(@RequestHeader(name = "X-Refresh-Token") String token) { return teacherService.tokenRefresh(token); } diff --git a/src/main/java/com/semicolon/gspass/security/config/SecurityConfig.java b/src/main/java/com/semicolon/gspass/security/config/SecurityConfig.java index c50f917..a8a3a4b 100644 --- a/src/main/java/com/semicolon/gspass/security/config/SecurityConfig.java +++ b/src/main/java/com/semicolon/gspass/security/config/SecurityConfig.java @@ -36,7 +36,8 @@ protected void configure(HttpSecurity http) throws Exception { .antMatchers(HttpMethod.POST, "/refresh").permitAll() .antMatchers(HttpMethod.POST, "/school").permitAll() .antMatchers(HttpMethod.GET, "/overlap").permitAll() - .antMatchers(HttpMethod.GET, "/school").permitAll(); + .antMatchers(HttpMethod.GET, "/school").permitAll() + .antMatchers(HttpMethod.POST, "/teacher/refresh").permitAll(); http.authorizeRequests() .antMatchers(HttpMethod.POST, "/teacher/school/time").authenticated() .antMatchers(HttpMethod.POST, "/teacher/password").authenticated()