Hi yazeem,
> How to secure those courses so that they are not publicly browse-able and also secure. Only our application should be able to browse those courses.
You can create a http handler to serve and secure files from blob storage. When the browser send a request to your service via
http://xxx.cloudapp.net/courses/index.html or
http://xxx.cloudapp.net/courses/style.css, it will be actually served by your own http handler. The http handler will get the actual file content (no matter it is a html, js or image file) from blob
storage and return the content. By using this way, we can protect the http handler using the the built-in ASP.NET authorization and authentication functionality. Or you can use your own way to authenticate users as you have full control of the http handler.
Please also refer to these resources:
Protect Files and Folders Using HttpHandlers in ASP.NET
http://www.codeproject.com/KB/web-security/HttpHandlersInAspNet.aspx
Integrating BLOBs with your ASP.NET websites
http://allcomputers.us/windows_azure/integrating-blobs-with-your-asp_net-websites.aspx
Thanks,
Wengchao Zeng
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact
msdnmg@microsoft.com.
Microsoft One Code Framework