Register / Login
File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
@Secured Annotation Not Working
posted 4 years ago
I have a method in a @Controller where I ONLY want that method to execute if the user role="ADMIN".
This method handles the POST from a
as shown below.
@RequestMapping(method = RequestMethod.POST) @Secured("ADMIN")
The problem is that, regardless of the user role, the code in the method executes!
I've tried adding an additional point-cut to the security context file for that @Controller class, but that didn't work either.
Look forward to any suggestions.
I agree. Here's the link:
Secure Log In Question
Getting defined security-roles programatically
Form based login
he doesn't ask for authenticate
Form Authentication not working