Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@ jobs:
port: 22
timeout: 60s
script: |
sudo docker stop studylog_server
sudo docker rm studylog_server
sudo docker pull ${{ secrets.DOCKERHUB_USERNAME }}/studylog_server:latest
sudo docker compose -f /home/ubuntu/project/compose.yml up -d
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.example.studylog.jwt.JWTUtil;
import org.example.studylog.service.TokenService;
import org.example.studylog.util.CookieUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler;
Expand All @@ -21,6 +22,9 @@
@Slf4j
public class CustomSuccessHandler extends SimpleUrlAuthenticationSuccessHandler {

@Value("${spring.redirectUri}")
private String redirectUri;

private final JWTUtil jwtUtil;
private final TokenService tokenService;

Expand Down Expand Up @@ -51,7 +55,7 @@ public void onAuthenticationSuccess(HttpServletRequest request, HttpServletRespo
response.addCookie(CookieUtil.createCookie("refresh", refresh));

// 회원가입 화면으로 리다이렉션(임시: 프론트 로그인 완료 화면으로 변경 예정)
response.sendRedirect("http://localhost:8080/signup");
response.sendRedirect(redirectUri);

}

Expand Down
Loading