Skip to content

Commit

Permalink
jwt 검증 로직 관련 예외처리를 위한 Controller Advice 제거 및 jwt config시 일부 값 default…
Browse files Browse the repository at this point in the history
… value 적용 #PAR-194 (#11)

* feat : Controller advice 삭제 및 jwt manager default value 설정

* style : Google Java Format

* fix : refresh secret key default value 적용 안되는 현상 수정

* style : Google Java Format

* fix : expire second default value 적용 안되는 현상 수정

* style : Google Java Format

---------

Co-authored-by: github-actions <>
  • Loading branch information
phjppo0918 authored Jul 20, 2023
1 parent 48313bb commit 38bbe45
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ public class JwtConfig {
@Bean
public JwtManager jwtManager(
@Value("${jwt.access-secret-key}") String accessKey,
@Value("${jwt.access-expire-second}") Long accessExpireSecond,
@Value("${jwt.refresh-secret-key}") String refreshKey,
@Value("${jwt.refresh-expire-second}") Long refreshExpireSecond) {
@Value("${jwt.access-expire-second:#{'1'}}") Long accessExpireSecond,
@Value(
"${jwt.refresh-secret-key:#{'DefaultDefaultDefaultDefaultDefaultDefaultDefaultDefaultDefaultDefaultDefaultDefaultDefaultDefaultDefaultDefaultDefaultDefaultDefaultDefaultDefaultDefault'}}")
String refreshKey,
@Value("${jwt.refresh-expire-second:#{'1'}}") Long refreshExpireSecond) {
log.info("Starting JwtManager");
return new JwtManager(
tokenManager(accessKey, accessExpireSecond),
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
online.partyrun.jwtmanager.config.JwtConfig
online.partyrun.jwtmanager.controller.JwtControllerAdvice
online.partyrun.jwtmanager.config.JwtConfig

0 comments on commit 38bbe45

Please sign in to comment.