Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: ACL vs ROLE question

  1. #1
    Join Date
    Sep 2006
    Posts
    9

    Default ACL vs ROLE question

    I have a web application that implements a service frontend.
    with many qury services exposed to many users.
    To understand the size of the application we can suppose a number of 100 services and a number of about 8000 users.
    Each user may or may not have access to one service.

    I cannot understand if is better to setup a role for each service or made a single role for authenticated users and manage the authorization problem via ACL.

    tanks.

  2. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,425

    Default

    So you're basically asking if you should go for ACL or ROLE based security? I think it very much depends on what you are trying to do. What your requirements are. What kind of security you are trying to implement. Etc....... Personally, ROLE based is very simply, straight forward and people generally understand it. If it makes sense, I would go with that. If roles aren't a natural fit, then ACL might make more sense.

  3. #3
    Join Date
    Feb 2007
    Posts
    26

    Default

    Does this mean I have either Roles OR ACLs?

    Because I am rewriting the security functionality for a Spring Webapp and I am collecting requirements right now to form a decision on how to implement the security features. If this is such an atomic decision, please let me know.

  4. #4
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,425

    Default

    I don't think it's an either or thing. I'm pretty sure I've read posts from people using a combination, you'd have to look into this.

  5. #5
    Join Date
    Feb 2007
    Posts
    26

    Default

    Thanks. From your other post I got the impression that you explicitely stated that is is either/or.

  6. #6
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,425

    Default

    Quote Originally Posted by grandfatha View Post
    Thanks. From your other post I got the impression that you explicitely stated that is is either/or.
    No I was simply trying to clarify what the actual question was . I thought it was "should I used ACL or ROLE?". I've never tried to use both so I really don't know, I guess you'd just have to give it a go. Apologies for any confusion.

  7. #7
    Join Date
    Feb 2007
    Posts
    26

    Default

    Alright, that made things clear. If I remember correctly, the Contacts Sample uses both Roles and ACL. But I am not sure.

  8. #8
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,425

    Default

    Thanks for the tip. I haven't looked at this in a while but I'll check it out later!

  9. #9
    Join Date
    Feb 2007
    Posts
    26

    Default

    I checked it yesterday. It uses both, the only problem is... the example only contains *.class files. I cant figure out how the magic is done

  10. #10
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,425

    Default

    I'm guessing you should be able to check out the source from the CVS repository.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •