Skip to content
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

Fix: 쿠키 인증방식 변경 #192

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ public Optional<String> extractRefreshToken(HttpServletRequest request) {
@Override
public Optional<String> extractAccessToken(HttpServletRequest request) {
// "Authorization" 헤더를 확인합니다.
//String authorizationHeader = request.getHeader(AUTHORIZATION);
String authorizationHeader = request.getHeader(AUTHORIZATION);
// "Authorization" 헤더가 존재하면, 헤더에서 토큰을 추출합니다.
//if (authorizationHeader != null && !authorizationHeader.isEmpty()) {
return extractToken.extractTokenHeader(request, AUTHORIZATION);
//}
if (authorizationHeader != null && !authorizationHeader.isEmpty()) {
return extractToken.extractTokenHeader(request, AUTHORIZATION);
}

// "Authorization" 헤더가 존재하지 않으면, 쿠키에서 토큰을 추출합니다.
//return extractToken.extractTokenCookie(request, jwtConfig.getAccessTokenName());
return extractToken.extractTokenCookie(request, jwtConfig.getAccessTokenName());

}

Expand Down
Loading