Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Authentication ...  Document authentication
Previous Previous
 
Next Next
New Post 7/2/2008 4:57 PM
Resolved
User is offline MZ
40 posts
10th Ranked


Document authentication 

How can i authenticate users to view documents (Word and PDF) ...As an example, when a user enters www.test.com/documentation/IT/Default.aspx in a browser, he goes to the log in page. However when a user enters www.test.com/documentation/IT/Portals/0/test.pdf , he can view the document without entering the credentials. How can i make the user to log in before they can view the document? I believe that the first URL www.test.com/documentation/IT/Default.aspx is going through the Default.aspx and hence a check is made if a user is registered or not...However the second URL does not hit the default.aspx page and hence they can view the document (I might be wrong..That is just my guess) . How can i force the users to log in before viewing a PDF document? Thanks in advance!!

 
New Post 7/2/2008 6:51 PM
User is offline Will Strohl
1333 posts
Orlando.DotNetNukeUG.Net/
6th Ranked




Re: Document authentication 

You can do this two ways.  First, you can change the folder through the Admin Menu > File Manager to only allows specific Roles to have view permissions.  Second, you can create a new folder to be a Database Folder.  This way, the visitor is pushed through the .Net processes no matter what.  However, this will increase your database size greatly, and includes a perf0rmance hit.


Will LinkedIn profile
StrohlSiteDesign.com | My Blog | DotNetNuke® Skins by SSD
Google Toolbar Button for DNN | Suggested DNN Upgrade Paths
ODUG Web Site
 
New Post 7/2/2008 9:49 PM
User is offline Mike Horton
3054 posts
dnn.gmss.org
4th Ranked






Re: Document authentication 

I've never tried locking down a file in DNN except through page roles so I'm taking a WAG here but I don't think the first way will make a difference Will as the user is bypassing the website and going straight to the document itself (the website isn't even loaded). That's been the bane of putting files out on the internet since, well, forever. The second idea sounds like it has merit as the file is actually stored in the database instead of on the server as an actual file.

Another option would be to use something like the Repository. When a file is uploaded through the Repository it gets a hash code added to it specifically so that a user has to go through the module to see the file. Then you could set roles on the module that can view it.

 
New Post 7/3/2008 5:15 AM
User is offline Will Strohl
1333 posts
Orlando.DotNetNukeUG.Net/
6th Ranked




Re: Document authentication 

Mike, while I may be very wrong, I thought that since 4.4 (I might have the version wrong) that DNN intercepts the file request and prevents access to protected directories.  (Don't ask me how - it confused me.)  This was a change that broke many modules (even the Documents Module) which gave access to files.  This process too would add a "fileTicket" url querystring value to a masked URL.

Does that sound familiar?


Will LinkedIn profile
StrohlSiteDesign.com | My Blog | DotNetNuke® Skins by SSD
Google Toolbar Button for DNN | Suggested DNN Upgrade Paths
ODUG Web Site
 
New Post 7/3/2008 8:57 AM
User is offline MZ
40 posts
10th Ranked


Re: Document authentication 

I tried the second option - Creating a database folder... The question i had was, how do i give reference to those documents? If it is a file system I can edit the page to point to whatever location i want to (Ex - Portals/0/documentation/IT.PDF)...but since it is a database folder, the file system reference is not going to work...how will i reference those database files then? Thanks in advance

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Authentication ...  Document authentication
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Where Every Home is an Investment
Where Every Home is an Investment
www.nestbrokers.com
Faculty of Graduate and Postdoctoral Studies
At the graduate level, the University of Ottawa offers more than 180 graduate certificates, master's degrees and PhDs, as well as interdisciplinary programs such as Women's Studies and Canadian Studies. Many postdoctoral opportunities are available in both the sciences and the humanities. For further information, please consult the site of the Faculty of Graduate and Postdoctoral Studies.
www.grad.uottawa.ca
Vekkin Solutions
Vekkin Solutions provides complete website solutions and custom module development to churches and small businesses.
www.vekkin.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP