File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Having conditional authenticationFailureUrl in spring security Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Having conditional authenticationFailureUrl in spring security" Watch "Having conditional authenticationFailureUrl in spring security" New topic
Author

Having conditional authenticationFailureUrl in spring security

Darvesh Niz
Ranch Hand

Joined: May 12, 2008
Posts: 119
Hello Guys,
i have interited one spring web app, where we have implement our own CustomAuthentication Filter which extends AuthenticationProcessingFilter. We have implement our own UserServiceImpl which has one method
public UserDetails loadUserByUsername(String email)
In this we query the database and construct our Domain User Object. and check if the user is expired, if the user is locked etc... Based on that we throw the exception and expect the determineFailureUrl will catch those exception and return the user with the correct login screen. But that method always get the BadCredentialException even through i am throwing DisabledExpcetion. Is there something i am missing.



in my CustomAuthentication Filter i am overriding determineFailireUrl method.



Any input will be appreciated.

Thanks
darniz
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Having conditional authenticationFailureUrl in spring security
 
Similar Threads
JSF 1.2 + Authentication with Spring Security 3.0.5
Spring Security 3: Salting password issue
Using other Authentication Providers
Need to login sharepoint portal and by pass window login screen using HttpClient of Apache
Spring Security 3 - cant't access secured page