Skip to content

Conversation

@jucheolkang
Copy link
Collaborator

GlobalExceptionHandler에서 responseException에 로그인 실패에서 발생하는 Exception을 잡아서 발생하는 문제였습니다

// AuthController.class
Authentication authentication;
        try {
            authentication = authenticationManager.authenticate(token);
        } catch (AuthenticationException ex) {
            throw new CustomApplicationException(ErrorCode.AUTHENTICATION_FAILED);
        }

CustomApplicationException을 로그인 실패 시 동작하도록 해서 "아이디 또는 비밀번호가 올바르지 않습니다" 메시지가 동작하도록 했습니다

Copy link
Member

@o-tao o-tao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!

@jucheolkang jucheolkang merged commit 8b5f2a1 into main May 26, 2025
3 checks passed
@jucheolkang jucheolkang deleted the GUTTOK-120 branch May 26, 2025 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants