Hello,
We're trying to do form builder authentication (in 3.9.1). I'm trying to do the following: A role "form-builder" is needed to access fr/orbeon/builder/* A role "orbeon-admin" can do anything, among which edit forms in the test app A role "cbpl-builder" can edit all forms with the "cbpl" app To do this, I edited web.xml: <security-constraint> <web-resource-collection> <web-resource-name>Orbeon Builder</web-resource-name> <url-pattern>/fr/orbeon/builder/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>form-builder</role-name> </auth-constraint> </security-constraint> <security-role> <role-name>form-builder</role-name> </security-role> ... There is some other security stuff in there, but nothing that should interfere with the builder. I also added the other two roles using security-role This is what's in my form-builder-permissions.xml file (the first try, I skipped the middle line): <?xml version="1.0" encoding="utf-8"?> <roles> <role name="orbeon-admin" app="*" form="*"/> <role name="orbeon-admin" app="test" form="*"/> <role name="cbpl-builder" app="cbpl" form="*"/> </roles> And In my properties-local.xml file: <property as="xs:string" name="oxf.fr.authentication.method" value="container"/> <property as="xs:string" name="oxf.fr.authentication.container.roles" value="orbeon-admin cbpl-admin cbpl-builder form-builder"/> And I've even added all the roles I'm using to model.xpl in the java authentication app. What am I forgetting? I haven't tested everything yet, but when I log in with a user who has the roles "orbeon-admin" and "form-builder", I do get access to the form builder, and I see all forms in the summary, but when I make a new form, I get an empty dropdown-list in the pop-up to choose my app from, thus making it impossible to make any new forms. If I remove form-builder-permissions, this has no effect. Another thing I notice: I can edit an exisiting form, but I see no controls in the builder!. Trying to save the form looks to work, until I reload and nothing changed. In the logs, I see ValidationExceptions flying by. Weird... Sincerely, Koen Vanderkimpen -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |