Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
@Secured Annotation Not Working
Joined: Jul 12, 2002
Jul 06, 2011 08:35:30
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:
subject: @Secured Annotation Not Working
Form based login
Getting defined security-roles programatically
he doesn't ask for authenticate
Form Authentication not working
Secure Log In Question
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013