GrantedAuthority « Security « Spring Q&A





1. Acegi Security: How do i add another GrantedAuthority to Authentication to anonymous user    stackoverflow.com

i give users special URL with access key in it. users accessing the public page via this special url should be able to see some additional data as compared to simple ...

2. Grails Acegi Plugin springsecurity.GrailsDaoImpl - User [admin] has no GrantedAuthority    stackoverflow.com

i upgraded my grails 1.0.4 + acegi 0.4.1 project to grails 1.1 with acegi 0.5.1. I'm able to start my application without errors, but when i want to login i get a ...

3. Spring Security: Advice needed on how to handle GrantedAuthority    stackoverflow.com

I have a concern when it comes to GrantedAuthority objects in a Spring Security application. I'm looking for a good way to handle things. First of all I'm trying to describe ...

4. Why is user.getRole() set as the GrantedAuthority in this Spring 3.0 authentication example?    stackoverflow.com

I'm trying to understand Spring 3.0 authentication. In the code below, why is user.getRole() set as the GrantedAuthority?

public final UserDetails loadUserByUsername(final String username)
{
    final List<GrantedAuthority> authorities = new ...

5. Convert List to Collection in Spring Security    stackoverflow.com

My case is that i have a method that takes Collection and i have the value as a list when i tried to add the list value into collection parameter it doesn't ...

6. Complex GrantedAuthority    forum.springsource.org

Complex GrantedAuthority I've consulted two books, the official security docs, Google, and this forum, and can't seem to find an example of what I'm looking for. I'm stumped. Perhaps I'm using ...

7. Map of GrantedAuthorities    forum.springsource.org

Map of GrantedAuthorities Hello, i'm trying to use Spring Security in our application but have a bit of a special requirement. When i log-in at the application i don't know for ...

8. Modifying GrantedAuthorities on current user session    forum.springsource.org

Modifying GrantedAuthorities on current user session After researching this problem for the best part of the day, I've come to bit of a fork in the road and not really sure ...

9. How can we add an authority to GrantedAuthority at run time? really best approach    forum.springsource.org

Hello all, I have read a lot about this question e.g. here http://forum.springsource.org/showth...ty-at-run-time I doubt if this the best approach. We create a new authentication and fill it. What's the mater ...





10. Unsure if i am using UserDetailsImplementation and GrantedAuthority correctly?    forum.springsource.org

Nov 16th, 2011, 09:54 AM #1 adam2510 View Profile View Forum Posts Private Message Member Join Date Sep 2011 Posts 47 Unsure if i am using UserDetailsImplementation and GrantedAuthority correctly? hey ...

11. Changing GrantedAuthority programatically    forum.springsource.org

Changing GrantedAuthority programatically I have an application that is allowing a user to have multiple Roles, but at logon the user must choose ONLY one role for that current session. For ...

12. Best ACL / GrantedAuthority approach    forum.springsource.org

Best ACL / GrantedAuthority approach When doing ACL based access control, what would be the best way to structure your ACL information. Schematically I see 2 approaches: For a persistent ACL ...

13. JdbcDaoImpl : Default GrantedAuthority Issue    forum.springsource.org

JdbcDaoImpl : Default GrantedAuthority Issue Dear Ben Alex, We were just extending the org.acegisecurity.userdetails.jdbc.JdbcDaoImpl when we come to a point that may also be interesting for you to take into consideration ...

14. Adding and removing GrantedAuthorities    forum.springsource.org

Adding and removing GrantedAuthorities I have a system where user has to initiate his participation. So he generally has a ROLE_PARTICIPANT, but before he gets to use the system I would ...

15. reloading GrantedAuthority[] in Authentication?    forum.springsource.org

reloading GrantedAuthority[] in Authentication? during the course of a user's session, he/she may gain more granted authorities how can I reload this array in the Authentication object? the UsernamePasswordAuthenticationToken contains a ...

16. null GrantedAuthority    forum.springsource.org





17. Dynamically updating GrantedAuthority for user    forum.springsource.org

Dynamically updating GrantedAuthority for user Hello, My project requires me to add/ remove permissions from the user. To achieve this, I created my own class which extended User and deleted specified ...

18. Change GrantedAuthority dinamically    forum.springsource.org

Change GrantedAuthority dinamically Hi!, In our application, one of the requirements is this: when an administrator manages users, he can update his own user and depromote himshelf to, for example, an ...

19. DigestProcessingFilter doesn't populate Authentication w/ GrantedAuthority instances    forum.springsource.org

My question was already asked by another user: http://forum.springsource.org/showthread.php?t=34626 (Item #1). I'll re-state that question. Using Acegi Security version 1.0.6 and the DigestProcessingFilter, how does the Authentication instance stored in the ...

20. Difference between ConfigAttribute and GrantedAuthority    forum.springsource.org

Hi all, Both ConfigAttribute and GrantedAuthority represent a role of a user. Then why Acegi has two interfaces to represent it?. I need to provide a custom role implementation and I ...

21. Super User, role prefix and custom GrantedAuthority    forum.springsource.org

Super User, role prefix and custom GrantedAuthority Hi I have some questions and ignorant complaints, since I don't know if I know enough to know how legitimate my issues are. 1. ...

22. How to change GrantedAuthority dynamically    forum.springsource.org

How to change GrantedAuthority dynamically Hello all, I am using Acegi for my webapplication but I encounter one problem. I need to change GrantedAuthority ( role ) for user dynamically. my ...

23. 2.0 GrantedAuthority cannot be an enum    forum.springsource.org

2.0 GrantedAuthority cannot be an enum I was upgrading to spring-security today from acegi. I usually store my GrantedAuthorities as Java 5 enums, to me this is perfect use case for ...

24. hierarchical roles should use the interface GrantedAuthority    forum.springsource.org

hierarchical roles should use the interface GrantedAuthority Hi, i was wondering why hierarchical roles are not working for me. after some debugging i found the solution. because ibatis doesn't support arrays ...

25. Is there a way to lazily load GrantedAuthorities?    forum.springsource.org

Is there a way to lazily load GrantedAuthorities? Hi everyone - congrats on the 2.0 release, it's made Spring Security a lot easier to get into and the refreshed docs are ...

26. How can we add an authority to GrantedAuthority[] at run time?    forum.springsource.org

How can we add an authority to GrantedAuthority[] at run time? Hi, I am using ACEGI security framework of Spring. Now I am getting all the roles from the database and ...

27. Custom GrantedAuthority as an enum, is it possible? How?    forum.springsource.org

Custom GrantedAuthority as an enum, is it possible? How? Hi, I've been trying for a while now. And I'm looking for advice on how to approach this. I want to use ...

28. getting GrantedAuthority by username in ldap    forum.springsource.org

in v1.x i was able to do the following get the GrantedAuthorities for a user Code: public GrantedAuthority[] getAuthorities(String ldapUsername) { LdapUserDetails ldapUserDetails = _ldapUserSearch.searchForUser(ldapUsername); return _populator.getGrantedAuthorities(ldapUserDetails); } after upgrading to ...

29. using java enum as GrantedAuthorities    forum.springsource.org

using java enum as GrantedAuthorities I tried briefly to use java a enum as my granted authorities objects (i'm on spring sec 2.5). I have had good luck with the java ...

30. no GrantedAuthority - what?    forum.springsource.org

no GrantedAuthority - what? I'll admit I'm pretty new to grails, etc. And very new to acegi security. And that I've looked all over for any information about what this means, ...

31. Object-Specific GrantedAuthority    forum.springsource.org

Object-Specific GrantedAuthority I understand that in Spring a GrantedAuthority is application-wide. But let suppose I wanted a user to only have access to say item#54. So I might have a UsersItems ...

32. GrantedAuthority and User for spring security    forum.springsource.org

Code: public class Personne implements UserDetails { .........properties........... private Set autorites = new HashSet(); } public class Autorite implements GrantedAuthority{ ........properties............ protected Set personnes = new HashSet(); }

33. JDK5 replacement for enumsets (in relation to GrantedAuthority)?    forum.springsource.org

Ehm, of course enumset is a part of jdk5, my problems lie elsewhere. I shouldn't post before my second cup of coffee it seems. hehe... I'm trying to find a JDK5 ...

34. RoleHierarchy in GrantedAuthorities    forum.springsource.org

RoleHierarchy in GrantedAuthorities I'm using Spring Security 3.0.4.RELEASE and I'm trying to figure out if RoleHierarchy can be used when simply looping through granted Authorities. Below is my config: Code: