Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Host and secure Java applet on DNN?Host and secure Java applet on DNN?
Previous
 
Next
New Post
10/18/2008 1:46 PM
 

Does anyone know of a way to secure access to a Java applet hosted within a DNN site to just registered users or some other role?

An applet tag looks something like this:

<APPLET archive="SomeApplet.jar" codebase="" code="somepackage.SomeApplet.class"></APPLET>

But if I try to use a DNN Secure Folder to secure the JAR file, I end up with a URL like the following to access the JAR:

http://localhost/DotNetNuke/LinkClick.aspx?fileticket=99999999999%3d&tabid=NN

I have not found a way to successfullly reference that sort of DNN secure URL in the APPLET tag.

Can DNN secure a file by role, and provide access to that secure file with a URL that ends with the file's original name. For example, can I secure SomeApplet.jar in DNN, where it is accessible with a URL like this:

http://localhost/DotNetNuke/securefiles/SomeApplet.jar

Does anyone know if this can be done w/DNN? (Actually, I know, at the very least,  it can be done with my own IHttpModule, but I'm interested in using pure DNN if possible.)

Thanks,
Tom

 
New Post
10/20/2008 9:13 AM
 

Tom,

You can secure folders via roles but, that only works within the context of DNN.  For instance if we had a folderd called Hilbert and in that folder was a zip file called Stuart.zip and I specified that only the Registrered users role could access the folder, then from within DNN only registered users could access the folder.

However, that doesn't prevent someone who isn't logged into DNN from browsing to the folder and accessing the file directly.

When you create a DNN Secure folder what DNN does is add ".resource" to the end of the file name.  This secures the file because IIS will not serve up files with .resource file type.

The third option you have is storing the file within the Database, but this also adds the .resource to the file.

I had a very similiar problem that you had in that I needed to secure some flash files.  I ended up writing my own little module that could take and then rework the fileticket url so that it was usuable to display the flash movie.

Stuart

 


Hilbert Solutions, LLC
Owner, Hilbert Solutions, LLC
http://www.HilbertSolutions.com
A DNN Service Provider
From Module Development to DNN Upgrades, your one stop DNN Shop
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Host and secure Java applet on DNN?Host and secure Java applet on DNN?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out