NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

[thredds] restricted access to fileServer-downloads?

Dear THREDDS team,

I managed to set up restricted access to OPeNDAP-URLs and specific folders like it is shown on:
http://www.unidata.ucar.edu/projects/THREDDS/tech/reference/RestrictedAccess.html

That is very nice, but I did not manage to get the fileServer-Download restiction working. I added the following code to tomcat's web.xml:


    <security-constraint>
      <web-resource-collection>
        <web-resource-name>restrict by URL</web-resource-name>
        <url-pattern>/dodsC/ftpthredds/swe/*</url-pattern>
        <url-pattern>/fileServer/ftpthredds/*</url-pattern>
        <http-method>GET</http-method>
      </web-resource-collection>
      <auth-constraint>
        <role-name>tdsConfig</role-name>
      </auth-constraint>
      <user-data-constraint>
       <transport-guarantee>NONE</transport-guarantee>
      </user-data-constraint>
    </security-constraint>

The first Link (OPeNDAP) is restricted via username / pass form, but the HTTPServer-Download not. What is wrong with my code?

Thank you very much,
Remon



  • 2011 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the thredds archives: