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.

Re: [thredds] restricted access to fileServer-downloads?

On 7/20/2011 6:30 AM, Remon Sadikni wrote:
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

Hi Remon:

im guessing that after your browser is automatically validating you after the first time. try clearing your browser cache, or try a different browser, or use a tool like "Live Http Headers" (firefox) to see whats really going on.

John



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