JAVA-1808: Added passwordEncoder bean (#9637)

* JAVA-1808: Added passwordEncoder bean

* JAVA-1808: renamed bean to encoder
This commit is contained in:
Sampada
2020-07-04 17:04:02 +05:30
committed by GitHub
parent ff13d5961e
commit c6eba53f90

View File

@@ -33,6 +33,8 @@
class="com.baeldung.security.MySavedRequestAwareAuthenticationSuccessHandler" /> class="com.baeldung.security.MySavedRequestAwareAuthenticationSuccessHandler" />
<beans:bean id="myFailureHandler" <beans:bean id="myFailureHandler"
class="org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler" /> class="org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler" />
<bean name="encoder"
class="org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder"/>
<authentication-manager alias="authenticationManager"> <authentication-manager alias="authenticationManager">
<authentication-provider> <authentication-provider>