users@glassfish.java.net

permissions - how to ?

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Sat, 12 Dec 2009 10:52:22 +0100

I am trying to allow any user to access my application, keeping some
constraints to certain resources only...

if I edit by hand the granted.policy file it works:

grant {
  permission java.security.AllPermission "/";
}

now I am trying to define such a permission through the web.xml file:

    <security-constraint>
        <display-name>Trying to allow others</display-name>
        <web-resource-collection>
            <web-resource-name>Test</web-resource-name>
            <description />
            <url-pattern>/*</url-pattern>
            <http-method>GET</http-method>
            <http-method>POST</http-method>
            <http-method>PUT</http-method>
            <http-method>DELETE</http-method>
        </web-resource-collection>
    </security-constraint>

it is not working.......

how to do that ?



-- 
------------------------------------------
   Felipe Gaścho
   10+ Java Programmer
   CEJUG Senior Advisor