• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

ProviderManager 문의

21.07.20 23:42 작성 조회수 153

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일겁니다.