강의

멘토링

로드맵

인프런 커뮤니티 질문&답변

tlsdnr1135님의 프로필 이미지
tlsdnr1135

작성한 질문수

스프링 시큐리티

ExceptionTranslationFilter

AuthenticationException은 어떤 경우에 발생하는지

작성

·

550

0

AccessDeniedException은 예시를 보여주셔서 예외가 발생하는 경우를 알겠는데

AuthenticationException은 어떤 경우에 발생하는지

잘 모르겠습니다 ㅜㅜ

퀴즈

Spring Security에서 현재 인증된 사용자의 정보를 나타내는 핵심 객체는 무엇일까요?

UserDetails

Authentication

GrantedAuthority

SecurityContext

답변 1

0

백기선님의 프로필 이미지
백기선
지식공유자

자바독(Abstract superclass for all exceptions related to an Authentication object being invalid for whatever reason.)에 따르면 어떠한 이유로 인해서든, 인증 객체가 유효하지 않은 경우에 언제든 던질 수 있는 예외인데요. 스프링 시큐리티 내부에서 인증에 실패하면 기본적으로 이 예외가 발생합니다.

tlsdnr1135님의 프로필 이미지
tlsdnr1135

작성한 질문수

질문하기