posted 7 years ago
Hi all,
I am currently working on a project with Spring 4, Spring Security 4, Hibernate 4, MySQL 5. When I login with the user credentials, it logs in but takes me to unauthenticated user page. I tried debugging the code in eclipse but I am not able to find out why it goes to the unauthenticated user page. We are using 4 different types of users for the project, so the database design given to me was a little different. I have added it as an image below.
Here are the codes I have used
SpringSecurityConfig:
MyUserDetailsService
All the values from the database are fetched correctly and passed in the UserDetails (details) object. But still it gives the same result.
table.png
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
--- Martin Fowler