Summary
I have a problem with authenticating users using spring boot API and JWT
Actual Behavior
I see this error in my console
WARN 24692 --- [nio-8080-exec-1] o.s.s.c.bcrypt.BCryptPasswordEncoder : Encoded password does not look like BCrypt
and
{
"timestamp": "2020-04-13T02:09:43.728+0000",
"status": 401,
"error": "Unauthorized",
"message": "Unauthorized",
"path": "/authenticate"
}
in post man
Expected Behavior
I expect to get token
Version
Comment From: jzheaux
Since Spring Security's JWT support doesn't use the PasswordEncoder, there's probably most configuration that you'll need to share to determine if this is a bug or not.
Would you please provide a minimal sample (a GitHub repo, for example) that reproduces the issue?
Comment From: nejatian
I have solved my problem by importing org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder.BCryptVersion to my code.