-
카테고리
-
세부 분야
백엔드
-
해결 여부
미해결
authenticationManagerBuilder에서 getObject를 할때 에러가 뜹니다.
22.10.27 20:07 작성 조회수 361
0
authenticationManagerBuilder.getObject();
This object has not been built
at org.springframework.security.config.annotation.AbstractSecurityBuilder.getObject(AbstractSecurityBuilder.java:51) ~[spring-security-config-5.7.4.jar:5.7.4]
왜그러는걸까요
추가로 DaoAuthenticationProvider에서 자동으로 additionalAuthenticationChecks해줘서
String presentedPassword = authentication.getCredentials().toString();
if (!this.passwordEncoder.matches(presentedPassword, userDetails.getPassword())) {
this.logger.debug("Failed to authenticate since password does not match stored value");
throw new BadCredentialsException(this.messages
.getMessage("AbstractUserDetailsAuthenticationProvider.badCredentials", "Bad credentials"));
}
패스워드를 체크할 수 있다는 글을 보았는데 확인해보니 deprecation이 되어있습니다.
사용하지 않는게 좋나요?
답변을 작성해보세요.
답변 0