인프런 커뮤니티 질문&답변
AuthenticationException은 어떤 경우에 발생하는지
작성
·
550
퀴즈
Spring Security에서 현재 인증된 사용자의 정보를 나타내는 핵심 객체는 무엇일까요?
UserDetails
Authentication
GrantedAuthority
SecurityContext
답변 1
0
백기선
지식공유자
자바독(Abstract superclass for all exceptions related to an Authentication object being invalid for whatever reason.)에 따르면 어떠한 이유로 인해서든, 인증 객체가 유효하지 않은 경우에 언제든 던질 수 있는 예외인데요. 스프링 시큐리티 내부에서 인증에 실패하면 기본적으로 이 예외가 발생합니다.





