adc 2004/06/27 13:50:36
Modified: applications/demo/src/webapp/WEB-INF geronimo-jetty.xml web.xml Added: applications/demo/src/webapp/forbidden hello.html Log: Updated. Revision Changes Path 1.2 +5 -4 incubator-geronimo/applications/demo/src/webapp/WEB-INF/geronimo-jetty.xml Index: geronimo-jetty.xml =================================================================== RCS file: /home/cvs/incubator-geronimo/applications/demo/src/webapp/WEB-INF/geronimo-jetty.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- geronimo-jetty.xml 30 May 2004 19:10:24 -0000 1.1 +++ geronimo-jetty.xml 27 Jun 2004 20:50:36 -0000 1.2 @@ -3,14 +3,15 @@ <context-root>/demo</context-root> <context-priority-classloader>false</context-priority-classloader> <security use-context-handler="false"> - <default-principal> - <principal class="org.apache.geronimo.security.realm.providers.PropertiesFileUserPrincipal" name="george"/> + <default-principal realm-name="demo-properties-realm"> + <principal class="org.apache.geronimo.security.realm.providers.PropertiesFileUserPrincipal" name="izumi"/> </default-principal> <role-mappings> <role role-name="content-administrator"> - <realm realm-name="geronimo-properties-realm"> - <principal class="org.apache.geronimo.security.realm.providers.PropertiesFileGroupPrincipal" name="it"/> + <realm realm-name="demo-properties-realm"> + <principal class="org.apache.geronimo.security.realm.providers.PropertiesFileGroupPrincipal" name="it" designated-run-as="true"/> <principal class="org.apache.geronimo.security.realm.providers.PropertiesFileUserPrincipal" name="metro"/> + <principal class="org.apache.geronimo.security.realm.providers.PropertiesFileUserPrincipal" name="george"/> </realm> </role> </role-mappings> 1.2 +8 -0 incubator-geronimo/applications/demo/src/webapp/WEB-INF/web.xml Index: web.xml =================================================================== RCS file: /home/cvs/incubator-geronimo/applications/demo/src/webapp/WEB-INF/web.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- web.xml 30 May 2004 19:10:24 -0000 1.1 +++ web.xml 27 Jun 2004 20:50:36 -0000 1.2 @@ -18,6 +18,14 @@ <role-name>content-administrator</role-name> </auth-constraint> </security-constraint> + + <security-constraint> + <web-resource-collection> + <web-resource-name>No Access</web-resource-name> + <url-pattern>/forbidden/*</url-pattern> + </web-resource-collection> + <auth-constraint/> + </security-constraint> <login-config> <auth-method>FORM</auth-method> 1.1 incubator-geronimo/applications/demo/src/webapp/forbidden/hello.html Index: hello.html =================================================================== <html> hello world. </html>