From 44ac90d57bd7601cc9ff4fd91d28ea5885a8a734 Mon Sep 17 00:00:00 2001 From: arturhasparian Date: Mon, 15 Jan 2024 18:32:48 +0200 Subject: [PATCH] refactoring: Remove Security Requirement from methods getNewAcessToken and getNewRefreshToken --- .../java/com/sellbycar/marketplace/auth/AuthController.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/com/sellbycar/marketplace/auth/AuthController.java b/src/main/java/com/sellbycar/marketplace/auth/AuthController.java index b1a933c..f97f0ff 100644 --- a/src/main/java/com/sellbycar/marketplace/auth/AuthController.java +++ b/src/main/java/com/sellbycar/marketplace/auth/AuthController.java @@ -87,7 +87,6 @@ public ResponseEntity registerUser(@RequestBody SignupRequest signUpRequest) }), @ApiResponse(responseCode = "401", description = "Unauthorized") }) - @SecurityRequirement(name = "Bearer Authentication") public ResponseEntity getNewAccessToken(@RequestBody JwtResponse response) throws AuthException { final JwtResponse token = authService.getJwtAccessToken(response.getJwtRefreshToken()); return ResponseUtil.ok("Access Token", token); @@ -101,7 +100,6 @@ public ResponseEntity getNewAccessToken(@RequestBody JwtResponse response) th }), @ApiResponse(responseCode = "401", description = "Unauthorized") }) - @SecurityRequirement(name = "Bearer Authentication") public ResponseEntity getNewRefreshToken(@RequestBody JwtResponse response) throws AuthException { final JwtResponse token = authService.getJwtRefreshToken(response.getJwtRefreshToken()); return ResponseUtil.create("Refresh token", HttpStatus.OK, token);