inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

스프링 시큐리티 완전 정복 [6.x 개정판]

인증 제공자 - AuthenticationProvider - 2

주입받는 authenticationManagerBuilder 질문

248

정민교

작성한 질문수 50

0

HttpSecurity에서 가져올 수 있는 AuthenticationManagerBuilder와

주입받는 AuthenticationManagerBuilder가 사로 다른건가요?

AuthenticationManagerBuilder가 자동 초기화과정에서 빈으로 생성되고 이게 싱글톤 빈이 아닌건가ㅛ..?

spring spring-boot spring-security security web-security

답변 2

0

정수원

네 서로 다른 빈입니다.

디버깅으로 두 객체를 확인해 보시면 서로 다른 객체임을 알 수 있습니다.

AuthenticationManagerBuilder 는 시큐리티가 다른 용도로 하나 이상 사용하고 있습니다.

사실 이렇게 직접 두개의 AuthenticationManagerBuilder 를 활용하는 사례는 많지 않지만 알아두면 더 많은 응용이 가능할 것 같습니다.

0

인프런 AI 인턴

안녕하세요, 인프런 AI 인턴입니다.
님의 질문과 관련하여 제공된 자료에는 AuthenticationManagerBuilder에 대한 직접적인 설명이 없습니다. 따라서, AuthenticationManagerBuilderHttpSecurity를 통해 얻어지는 AuthenticationManagerBuilder, 그리고 이들의 초기화 과정과 싱글톤 여부에 대한 구체적인 답변을 제공해 드릴 수 없음을 양해 부탁드립니다.
스프링 시큐리티 관련 자세한 내용은 Spring Security 프로젝트 페이지를 참고하시는 것을 추천드립니다.

로그아웃-logout()-2 강에서 겟방식 로그아웃 호출 후 화면이동 질문입니다.

0

35

2

단원별 소스코드

0

65

2

CustomAuthenticationProvider 추가 관련 문의

0

78

2

AOP 의존성 명칭 변경

0

77

1

빈 1개 등록 시 다른 해결 방법

0

70

1

@Bean으로 AuthenticationProvider를 등록 시 http.authenticationProvider 함수를 이용해서 추가해줘야되나요?

0

87

2

OIDC의 id token에 담긴 데이터에 대해

0

78

1

loginPage("/loginPage") 질문드립니다.

0

69

1

@EnableWebSecurity

0

148

1

트랜잭션과 롤백

0

100

1

68. 인증 이벤트 - AuthenticationEventPublisher 활용 강좌 음성 문제

0

91

2

AuthenticationManager 사용 방법

0

153

2

HttpSecurity.authorizeHttpRequests() - 2 강의 부분에 대한 질문

0

108

2

spring security 6.3에서는 HttpSecurity가 만들어지기 전 WebSecurity가 먼저 만들어지는게 맞나요??

0

192

1

init(B Builder), configure(B builder) 에 대하여 질문 드립니다.

0

109

2

메타 주석 질문

0

69

1

동시세션제어 기능에서 로그아웃하기

0

152

3

로그인 후, redirect 에서 error

0

140

3

Session 생성 타이밍에 대한 질문

0

86

2

강의 참고 내용을 개발 로그로 작성해도 될지 문의드립니다.

0

135

2

customAuthentication 관련

0

132

2

authenticationManagerBuilder 주입받은거 vs 만든 거

0

114

1

UserDetailsService()에서 UserDetail이 아닌 타입을 반환할 수 있나요?

0

101

1

9:28 패턴 3의 경우 마지막으로 설정한 것만 적용되는 것 같습니다.

0

162

2