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  |  

Maximum ASP
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Authentication ...  Document authentication
Previous Previous
 
Next Next
New Post 7/7/2008 10:05 PM
User is offline Will Strohl
1368 posts
www.WillStrohl.com
6th Ranked




Re: Document authentication 

This should help with understanding the folder types.  In turn, perhaps this could assist you in helping us troubleshoot this further.

http://www.mitchelsellers.com/blogs/articletype/articleview/articleid/167/pageid/83.aspx


Will LinkedIn profile
DNN Training Videos | My Blog | DotNetNuke® Skins by SSD
Google Toolbar Button for DNN | Suggested DNN Upgrade Paths
ODUG Web Site
 
New Post 7/9/2008 9:52 AM
User is offline MZ
45 posts
10th Ranked


Re: Document authentication 

I was able to redirect to the log in page, if the users click on the file link without authenticating themselves...this is what i did...if you look at the linkclick.aspx web config entry, it points to "DotNetNuke.Services.FileSystem.FileServerHandler". So i went to the DNN code "FileServerHandler.vb" and there was this method called "ProcessRequest" which is reponsible for displaying that custom error message ("You do not have access to this resource"). Inside that method, it checks for authentication and that is where you need to customize the code...So i removed the custom error message and did the following steps -> i added a session variable which holds the path to the file (when you add a link module, you get a link to a file...store that link in this session variable). Then I  got the log in tab id from the portal settings...Then I redirected user to the log in tab id and added a query string to the URL...so the URL would look something like 'http:www.test.com/66/tabid/FileRequest=true"...After that once the user enter the credentials and click log in, i check for the query string...if it is null, i redirect them to the home tab...if query string is not null, i have the session variable which holds the path to the file...so i redirect them to that session variable path and the users were able to open or save the document after that...

 
New Post 7/12/2008 12:04 PM
User is offline Will Strohl
1368 posts
www.WillStrohl.com
6th Ranked




Re: Document authentication 

Great fix, and thank you for posting it.  However, if you haven't already done so, I would suggest breaking your changes out to your own provider project to make upgrading later easier.  The only difference would be that you'd have to add another provider node in your XML, and specify the new provider name.


Will LinkedIn profile
DNN Training Videos | My Blog | DotNetNuke® Skins by SSD
Google Toolbar Button for DNN | Suggested DNN Upgrade Paths
ODUG Web Site
 
New Post 7/14/2008 4:59 PM
User is offline MZ
45 posts
10th Ranked


Re: Document authentication 

Just a quick question...Since I added a "Links" module to my webpage, the links are secure...However i need to update the existing links which point to a simple file system and hence are not secure...I need to replace the existing links with the links from the "Links" Module..However, there are tons of links on my web site...Do i need to update each link? That is going to be very painful...Does anyone know of a easier way to do this?

 
New Post 8/6/2008 1:32 PM
User is offline MZ
45 posts
10th Ranked


Re: Document authentication 

This is just an FYI...You dont have to update all links manually. You can do some database scripts that could update the links. I had about 700-800 links in my application. I basically wrote 3 stored procs and 1 function to update the links. Also the core DNN file handler class needed to be tuned a bit to reflect the new links. The idea is that all contents with DNN is stored within the database table. So apply your scripts to modify the column of that table which holds the contents of your application. Hope this helps

 
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.

 


DNNhost Scandinavia
SUPER fast QuadCore DELL servers, MSSQL servers, DotNetPanel, daily backup, Check out our customers websites
DNNhost.dk
Personify Design, Inc.
Seattle-based Personify Design has developed customized DotNetNuke websites for a wide range of customers to meet many different types of needs, including distributed authorship across thousands of pages to integrated Verisign e-commerce capabilities.
www.personifydesign.com
DNN Outsourcing
50% more affordable services comparing to Western Europe and US: Custom DotNetNuke module development, skins, consulting, maintainence... Over 15.000 working hours of experience in custom DotNetNuke Solutions development, 8 years experience in outsourcing, excellent references!
www.dnnoutsourcing.com

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