I'm doing spring-security form based validation using database. Its all working if i use Inmemory user n pwd.
if i use last commented code then its work well. but when i use query then nothing happens. only 2 lines shown at jboss console but stil login page remains there. and not allows to me to go my actual page after right unm n pwd. and not even display below code for next any successful/wrong login entry.
again if i write wrong querey intensely then also no sql error shown. Whats wrong here.
It seems Spring Security doesn't check or do anything within the authorities-by-username-query of my security context.xml file. Do I need to explicitly tell it to check? When I intentionally give an invalid table within the users-by-username-query, I do get back errors indicating bad sql but not for the authorities-by-username-query. Did i miss anything? Thanks.
Here is the snippet code in my security context.xml:
posted 9 years ago
Then authentication always fails regardless of whatever login/password I gave, even with the correct login/password.