강의

멘토링

커뮤니티

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

개발중님의 프로필 이미지
개발중

작성한 질문수

스프링 시큐리티

AuthenticationManager와 Authentication

ProviderManager 문의

작성

·

267

0

인증객체를 처리할 수 있는 provider가 없으면 ProviderManager 에서 .parent.authenticate(authentication); 통해 Parent providerManager에서 인증을 요청한다고 했는데

어떤 class가 Parent providerManager 인가요?

그리고 부모 providerManager는 어떻게 DaoAuthenticationProvider 설정이 되는 건가요?

이클립스라서 그런지 수업처럼 시큐리티 라이브러리 디버그가 잘 안되네요.

답변 1

0

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

이클립스 디버거도 잘 될텐데 이상하네요.

코드 주석을 보시면..

https://github.com/spring-projects/spring-security/blob/main/core/src/main/java/org/springframework/security/authentication/ProviderManager.java

 A parent {@code AuthenticationManager} can also be set, and this will also be tried if none of the configured providers can perform the authentication. This is intended to support namespace configuration options though and is not a feature that should normally be required.

이런 내용을 찾을 수 있습니다. 그러니 parent는 AuthenticationManager일겁니다.

개발중님의 프로필 이미지
개발중

작성한 질문수

질문하기