-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YEL-42 [feat] 소셜 로그인 API 및 Authorization 구현 #34
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
덕분에 많이 배우고 갑니다
@ExceptionHandler({ | ||
CustomAuthenticationException.class, | ||
ExpiredTokenException.class, | ||
InvalidTokenException.class, | ||
NotSignedInException.class, | ||
OAuthException.class | ||
}) | ||
public ResponseEntity<BaseResponse> UnauthorizedException(CustomException exception) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
경의롭습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
최곱니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
엇 근데 이거 exception 수정된거로 바꿔야하는거 아닌가요?
.addFilterBefore(new ExceptionHandlerFilter(), UsernamePasswordAuthenticationFilter.class) | ||
.addFilterBefore(new JwtFilter(new JwtTokenProvider(), secretKey), | ||
UsernamePasswordAuthenticationFilter.class) | ||
.addFilterBefore(new JwtExceptionFilter(), JwtFilter.class) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이렇게 되면 코드 순서대로 filter가 순서를 이루게 되나요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넴 맞슴다
if (requestPath.startsWith("/api/v1/auth/oauth")) { | ||
filterChain.doFilter(request, response); | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
향후 비인가 API 리스트 코드에 반영할게요~!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
역시 대단하십니다. 수고하셨습니다!
private static final Long accessTokenValidTime = ofHours(4).toMillis(); | ||
private static final Long refreshTokenValidTime = ofDays(14).toMillis(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
숫자는 static으로 선언한거 갖고오는게 어떤가요?
@ExceptionHandler({ | ||
CustomAuthenticationException.class, | ||
ExpiredTokenException.class, | ||
InvalidTokenException.class, | ||
NotSignedInException.class, | ||
OAuthException.class | ||
}) | ||
public ResponseEntity<BaseResponse> UnauthorizedException(CustomException exception) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
최곱니다!
@ExceptionHandler({ | ||
CustomAuthenticationException.class, | ||
ExpiredTokenException.class, | ||
InvalidTokenException.class, | ||
NotSignedInException.class, | ||
OAuthException.class | ||
}) | ||
public ResponseEntity<BaseResponse> UnauthorizedException(CustomException exception) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
엇 근데 이거 exception 수정된거로 바꿔야하는거 아닌가요?
☘️ Related Issue
✅ Work description
💡 PR point