szerhusenBC / jwt-spring-security-demo

A demo for using JWT (Json Web Token) with Spring Security and Spring Boot 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

where does BCryptPasswordEncoder be used?

joeyUOFA opened this issue · comments

Hi,

I saw PasswordEncoder is defined, but it is not been used in any where. How do you verify the password when use logs in?

Thanks

It is registered as a bean in the WebSecurityConfig.

@joeyUOFA : Like @maxwellt already mentioned it, it's configured as a @bean and Spring is using it automatically as password decoder.