Dec 16th, 2008, 12:34 AM
method not intercepted while authentication
i hav implemented my custom UserDetailsService and I am calling a secured method from loadUserByUserName(). But that method is not intercepted here. After the user is authenticated and logs in successfully, if I use that same secured method again it is intercepted. I tried to debug the code but found that chain is empty when that method is called from loadUserByUsername. But chain is populated with MethodSecurityInterceptor if same method is called from some where else.
Is it the feature provided by SpringSecurity to not to intercept method while authentication? or I am making some mistake.
Dec 16th, 2008, 02:11 AM
Is your secured method in the same class where loadUserByUserName implementation is?
Dec 16th, 2008, 02:16 AM
No its not part of that class. Its comlpetely different bean. Actually its a database API.
Dec 16th, 2008, 09:02 PM
Does anybody know about the problem i am facing. Please help
Dec 17th, 2008, 05:45 AM
Please add your configuration as an attachment (not inline) - otherwise it's very difficult for people to work out what's happening.
Dec 17th, 2008, 09:37 PM
I hav attached configuration files. As u can see i have intercepted only database api. using this api i fetch user data from db in loadUserByUsername method of UserDetailsService.
Tags for this Thread