1. Can Spring Security use @PreAuthorize on Spring controllers methods? stackoverflow.comCan Spring Security use @PreAuthorize on Spring controllers methods? |
2. What's the difference between @Secured and @PreAuthorize in spring secu 3? stackoverflow.comIt's not clear for me what is the difference in spring security between :
And
I understand PreAuthorize can work with spring el ... |
3. @PreAuthorize on spring controller sending redirect if authorization fails stackoverflow.comI've got spring security successfully evaluating a @PreAuthorize on my controller. If i use "permitAll" then I can view the page, and if I use "isAuthenticated()" then I get an ... |
4. Prevent Method call without Exception using @PreAuthorize Annotation stackoverflow.comWe are using Spring Security 3. We have a custom implementation of PermissionEvaluator that has this complex algorithm to grant or deny access at method level on the application. To do ... |
5. Spring Security: method is not secured with @PreAuthorize annotation stackoverflow.comI would like to secure method in my managed session bean for specific role
|
6. Spring Security hasRole('ROLE_ADMIN') in config and @PreAuthorize("permitAll") not working? stackoverflow.comI'm trying to lock down my entire app except a particular URL/method.
Here's my
|
7. How to JUnit tests a @PreAuthorize annotation and its spring EL specified by a spring MVC Controller? stackoverflow.comI've defined this method in my Spring MVC Controller :
|
8. Spring Expression Language and Spring Security 3: accessing bean reference in @PreAuthorize stackoverflow.comI'm trying to access a bean reference in a @PreAuthorize annotation as follows:
I have a test bean configured as follows:
|
9. Spring security @Secured and @PreAuthorize stackoverflow.comPossible Duplicate:I'm wondering which annotations is more correctly to be used with spring ... |
10. java.lang.NoSuchMethodError with @PreAuthorize annotation stackoverflow.comI use Spring Security 3 with Tomcat 7. My http tag definition is like that:
However when I want to use method based security as like:
|
11. Spring Security's @PreAuthorize on type level can not be overriden on method level stackoverflow.comI'm trying to protect a Controller with the |
12. Would annotating a setter with @PreAuthorize be too brutal stackoverflow.comI have a certain entity that can possibly be edited by different actors. A good example for the scenario would be an user of a system, who can edit their personal ... |
13. @PreAuthorize and RoleHierarchyVoter stackoverflow.comI am using role hierarchy in Spring Security as in my question. When I try to secure a method with |
14. Method is not secured with @PreAuthorize annotation forum.springsource.orgMethod is not secured with @PreAuthorize annotation Hi, I would like to secure method in my managed session bean for role `ROLE_ADMIN` applicationContext-security.xml: |
15. @PreAuthorize, ACLs, spEL, and missing debug info forum.springsource.org@PreAuthorize, ACLs, spEL, and missing debug info I am trying to use spring-security 3.0.5 acl features and have it working for post-filtering collections and arrays. But I am unable to get ... |
16. @PreAuthorize - feature request forum.springsource.orgMar 28th, 2011, 09:29 AM #1 raster3 View Profile View Forum Posts Private Message Junior Member Join Date Nov 2008 Posts 10 @PreAuthorize - feature request can I do this? @PreAuthorize("#this.getClass().getName() ... |
17. @PreAuthorize doesn't trigger CAS login redirection forum.springsource.orgIf I have a page who's access is defined in the security.xml Code: |
18. SpEL and Spring Security 3: accessing bean reference in @PreAuthorize forum.springsource.orgSpEL and Spring Security 3: accessing bean reference in @PreAuthorize Hi, I'm trying to access a bean reference in a @PreAuthorize annotation as follows: @PreAuthorize("#{ @testBean.getTestBoolean()}") public String testSpEL() { .... ... |
19. Can't get PreAuthorize annotation to work with CustomPermEvaluator forum.springsource.orgMay 12th, 2011, 05:38 PM #1 mediocre View Profile View Forum Posts Private Message Junior Member Join Date May 2011 Posts 7 Can't get PreAuthorize annotation to work with CustomPermEvaluator Command ... |
20. @RequestMapping and @PreAuthorize not compatible? forum.springsource.org@RequestMapping and @PreAuthorize not compatible? I'm running into an issue with Spring 3.0.5 trying to use MVC and security annotations at the same time. Without the security annotations, everything works fine. ... |
21. Using enums with #this in hasPermissions in @PreAuthorize [3.0.5] forum.springsource.orgUsing enums with #this in hasPermissions in @PreAuthorize [3.0.5] We started out using the PreAuthorize annotations like this Code: @PreAuthorize("hasPermission(#contact,'view')") public String getString(Contact contact)... @PreAuthorize("hasPermission(#contact,'store')") public String getString(Contact contact)... However there ... |
22. PreAuthorize using AspectJ forum.springsource.orgPreAuthorize using AspectJ I have a controller that gets a list of object IDs a user wants to delete. These are passed to a service which gets the matching objects from ... |
23. PreAuthorize being ignored forum.springsource.orgAug 30th, 2011, 10:41 AM #1 peter_spikings View Profile View Forum Posts Private Message Junior Member Join Date Aug 2011 Posts 6 PreAuthorize being ignored Hi all, I hope someone here ... |
24. PreAuthorize not work forum.springsource.orgPreAuthorize not work Hello, I have issue with PreAuthorize annotation. @PreAuthorize("hasRole('ROLE_ADMIN')") @RequestMapping(value = "/admin/role") public String manage(String name, Model model){ model.addAttribute("list", service.getMembers(false)); return "admin/role"; } I try to secure method but ... |
25. @PreAuthorize interference with @PathVariable in Spring 3.1.0.M2 forum.springsource.org@PreAuthorize interference with @PathVariable in Spring 3.1.0.M2 Hello, we are currently using @PathVariable annotation in this method without any problem @RequestMapping(value={"/account/{pk}"},method=RequestMethod.DELETE) @ResponseBody public JsonResponse deleteAccount(final @PathEntity("orgName") Organization org, @PathVariable("pk") Long pk){ ... |
26. How to nicely wrap the AccessDeniedException that PreAuthorize/hasPermission throws forum.springsource.orgHow to nicely wrap the AccessDeniedException that PreAuthorize/hasPermission throws For a basic piece of code: Code: @PreAuthorize("hasPermission(#stuff, 'morestuff')") public void setStuff(Stuff stuff){ doStuff(stuff) } Spring-security, and my custom permission evaluator, happily ... |
27. Difference between @Secured, @RolesAllowed, @PreAuthorize forum.springsource.orgDifference between @Secured, @RolesAllowed, @PreAuthorize Hi, In my application, I just want to allow acces for some webmethods only to users who have the "ROLE_SUPERVISOR" role. But I can't establish what ... |
28. 3.0.7.RELEASE and RoleHierarchyImpl with @PreAuthorize framework bug ? forum.springsource.orgDec 1st, 2011, 11:34 PM #1 dlmiles View Profile View Forum Posts Private Message Senior Member Join Date Aug 2006 Posts 113 3.0.7.RELEASE and RoleHierarchyImpl with @PreAuthorize framework bug ? I ... |
29. @PreAuthorize doesn't do anything forum.springsource.orgYou haven't really said anything about your application which will allow anyone to determine why it doesn't work in your case. What did you add the annotation to? How is it ... |
30. @PreAuthorize fails when package is added to component-scan. forum.springsource.org@PreAuthorize fails when package is added to component-scan. After a lot of gnashing of teeth, I've upgraded our app to use Spring 3.0.0 and Security 3.0.1. This morning, I finally got ... |
31. LoginListener and @PreAuthorize issue forum.springsource.orgLoginListener and @PreAuthorize issue Hello, i have created a small usermanagement app. I have secured my "saveUser" function in my DAO with @PreAuthorize("#u.username == principal.username"). This works also fine. But now ... |
32. authorize tag w/url and Using @PreAuthorize in Controller forum.springsource.orgauthorize tag w/url and Using @PreAuthorize in Controller Using springframework 3.0.3-release and spring-security-3.0.2-release, the following does not seem to work exactly as I would have thought. I have security configured in ... |
33. PreAuthorize forum.springsource.orgWhat does your method signature (including the annotation) look like? Does this also happen when you are authenticated? If so what type of authentication are you doing? The IllegalArgumentException means that ... |
34. Implementing access control lists (acls): @secured / @preAuthorize / @postAuthorize forum.springsource.orgAug 17th, 2010, 05:34 AM #1 rdomingo View Profile View Forum Posts Private Message Junior Member Join Date Aug 2008 Posts 8 Implementing access control lists (acls): @secured / @preAuthorize / ... |
35. Is there any reason @PreAuthorize("isAuthenticated()") does not work in 3.0-line? forum.springsource.orgI've tried the following at the top of a controller: @PreAuthorize("isAuthenticated()") It seems to let everyone through. I don't really understand it because has*() access controls work just fine, but not ... |
36. Spring MVC @Controller and Spring Security @PreAuthorize seems to be divorced. forum.springsource.orgSpring MVC @Controller and Spring Security @PreAuthorize seems to be divorced. Hello everyone: I have a project in which I'm using Spring MVC and Spring Security and I have an issue ... |
37. Hot to Specify @PreAuthorize, @PostAuthorize, and @PostFilter in an XML as an config forum.springsource.orgHello All, I am Using Spring Security's Access Control list to secure our Objects. But one enhancement that we would like to make is to move all my @PreAuthorize("hasPermission(#user, write)") @PostFilter("hasPermission(filterObject, ... |