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  |  

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


  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

SteadyRain
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
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Authentication ...  Document authentication
Previous Previous
 
Next Next
New Post 7/7/2008 9:05 PM
User is offline Will Strohl
1331 posts
Orlando.DotNetNukeUG.Net/
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
StrohlSiteDesign.com | My Blog | DotNetNuke® Skins by SSD
Google Toolbar Button for DNN | Suggested DNN Upgrade Paths
ODUG Web Site
 
New Post 7/9/2008 8:52 AM
User is offline MZ
37 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 11:04 AM
User is offline Will Strohl
1331 posts
Orlando.DotNetNukeUG.Net/
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
StrohlSiteDesign.com | My Blog | DotNetNuke® Skins by SSD
Google Toolbar Button for DNN | Suggested DNN Upgrade Paths
ODUG Web Site
 
New Post 7/14/2008 3:59 PM
User is offline MZ
37 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 12:32 PM
User is offline MZ
37 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.

 


WDK Solutions
Quality modules for the DotNetNuke community. Check out our 'wild' modules!
wdkns.com
UK - DotNetNuke providers
UK providers of DNN module development and skin package design. Oxford Information Labs provides cost-effective solutions for businesses and organisations specialising in Skin design and bespoke module development.
www.oxil.co.uk
TronixSoft
Hosting for local businesses that want more from their websites.
www.TronixSoft.com

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