on-internet
← Community

Spring Boot Custom Authentication Provider with Java Configuration not working

Stack Overflow ·

I am trying to setup a REST based web application, where the frontend is using Reactjs and the backend is using Spring Boot. I am also trying to setup a custom authentication provider, and this is where my problems start. When trying to test the login API call, the CustomAuthenticationProvider is never called, and instead the default DaoAuthenticationProvider is used. This causes the login to report "Bad credentials". I have upload a small sample application to github: spring-boot-auth-demo To test the login API I use the following curl: curl -H "Content-Type: application/json" -X POST -d '{"u

Comments

Sign in or sign up to comment and upvote.

No comments yet.