Subscribe

Problem with authorization

  1. 2010-07-28 10:06:07 PDT
    Hi, I have problems on having used allow and disallow files. I uncomment the following in the nakedobjects.properties file: nakedobjects.reflector.facets.include=\ org.nakedobjects.runtime.authorization.standard.\AuthorizationFacetFactoryImpl nakedobjects.authorization.learn=true and in passwords file, three users with roles: tom:pass:user_role dick:pass:oper_role harry:pass:user_role|supervisor_role but then when i logging in with a user who has one role, in the file allow there is nothing written. I use the version 4.0.0 of naked objects. Which can be the problem? I need help! I have wasted a lot of time with this problem! Thank you very much
  2. 2010-07-29 03:41:16 PDT
    I've just been trying this out. Running it out of the box doesn't work as you say. Hunting around I noticed that exploration security was in play as well as the files based one so this was doing the work instead. If I then ran it in single-user mode instead of exploration it then worked fine. I used the following command to run the example app: $ ./nakedobjects.sh -t single-user -v dnd
  3. 2010-07-29 12:55:27 PDT
    When I add -t single-user -v html it works. Allow file is written and then, i edit it specifying multiple roles ( I add admin_role), in a comma-separated list, like this: com.pragprog.dhnako.carserv.dom.vehicle.Model:user_role,admin_role but then when i logging with other user different from the first one, with admin_role, I cant see class Model. And it should be possible because I edited the file allow with admin_role. Can it be for having added -t single-user? Or maybe i dont know how work allow and disallow files... Thanks a lot
  4. 2010-07-29 13:00:51 PDT
    Have you turned off the learn feature for the subsequent log-on? Otherwise the file will get overwritten.
  5. 2010-07-29 14:39:01 PDT
    Thank you so much!! It works! Regards
Jump To:
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.