Developer forum

Forum » CMS - Standard features » Trouble accessing files in Extranet secure folder

Trouble accessing files in Extranet secure folder

Daniel Hollmann
Reply

Hi DW.

I have tried to set up a secure folder in Dynamicweb, to have files protected behind login.
I have used these ressources

https://doc.dynamicweb.com/get-started/introduction/installation/installing-dynamicweb#8089

https://doc.dynamicweb.com/forum/cms-standard-features/cms-standard-features/trying-to-download-files-from-secure-folder-returns-403-dw-9-12-9

https://doc.dynamicweb.com/documentation-9/platform/advanced-settings/control-panel#2545

However, as soon as a disable the “Anonymous Authentication” in IIS, every time I try to access the file, I just get the 401 error.

I can’t see what I’m missing. I have attached the settings I have made in screenshots here.

 

 

2024-04-03_09h42_56.png 2024-04-03_09h43_19.png 2024-04-03_09h43_32.png 2024-04-03_09h43_48.png

Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Daniel

The entire purpose of the setup is to get a 401 from IIS when you try to access the file directly. You need to use DWSDownload file to access the file using DW permissions:

See this thread as well: https://doc.dynamicweb.com/forum/cms-standard-features/cms-standard-features/secured-folder-unexpected-behavior

BR Nicolai

 
Daniel Hollmann
Reply

Thanks. I can see that this works. However we want to secure assets, like a video that should be shown in the browser, but we will find a workaround for that :)

 

You must be logged in to post in the forum