Skip to content

Commit

Permalink
⚡ :: [Security] 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
leeseojune53 committed Jun 9, 2021
1 parent 889bbbe commit 44e959e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 44e959e

Please sign in to comment.