Closed DongJu-Na closed 4 weeks ago
Hi, @DongJu-Na , thanks for reaching out, and sorry you are having trouble.
The request doesn't go to the controller and I don't know why. Please help!!
The loginProcessingUrl
changes the URL that the UsernamePasswordAuthenticationFilter
will listen to process credentials. The reason the request does not reach the controller is probably because the filter has intercepted it before. If you want the request to reach your controller then you do not need to use formLogin()
at all, you can just stick with your login page and your login processing endpoint.
That said, it feels like this is a question that would be better suited to Stack Overflow. We prefer to use GitHub issues only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add more detail if you feel this is a genuine bug.
Problem solved! After learning more about formLogin, I realized I misunderstood it 😅
Even though I set loginProcessingUrl in Spring Security settings, I only get redirected with 302 when submitting the form. I would appreciate it if you could let me know where I missed it.
Here are my security settings.
html
gradle
The request doesn't go to the controller and I don't know why. Please help!!