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 ...How can I implement .net forms authentication in DNN?How can I implement .net forms authentication in DNN?
Previous
 
Next
New Post
5/21/2008 5:57 PM
 

Hello,

I am in the process of migrating an existing asp.net website over to Dot Net Nuke.  This website uses .net forms authentication to secure files in a particular directory, and users must first go through a login page before they are allowed access to these files.  How can I implement this same functionality in DNN?

I can see that the default web.config file in the DNN root directory already has a reference to enable forms authentiation, but I can't figure out how to apply this to any specific portal that I create.  Has anyone here come up against this same issue?

My platform uses the .net 2.0 framework and DNN 4.  Any help would be greatly appreciated.

Thanks,

pvirk

 
New Post
5/22/2008 12:17 AM
 

The built in Security/Login uses the Forms Authentication to store the users Authentication ticket, and there is built in security to control access to the folders of your application.

You shouldn't need to do anything specific yourself.


Charles Nurse
Chief Architect
Evoq Content Team Lead,
DNN Corp.

Want to contribute to the Platform project? - See here
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
 
New Post
5/22/2008 4:31 PM
 
Hello Charles, Thank you for your prompt response. I'm a bit confused here - my understanding is that the built-in Security/Login that comes with DNN is used to access the content management end of things. Stuff like DNN users, portals, pages and the like. Yes? The site I am trying to convert over uses a collection of secured pages that will access a data source completely separate from the DNN database. On my existing site, this includes a custom login page that validates users via .net forms authentication. The login credentials (username, password) are verified against this data source. Once validated, users can look at the remaining content in the data source. I guess what I am asking is ... For a DNN portal, is there a way to keep the built-in DNN login functionality provided so that users can manage the DNN stuff, and at the same time setup .net forms authentication for pages that need to validate against and access a separate database? Hope this makes sense, feel free to flame me if not. Regards, pvirk
 
New Post
5/27/2008 8:54 AM
 

I understand your questions, but I don't see why you would want to do that. In DNN, you have user roles that have different access to different things. The stuff you mentioned (user accounts, creating portals, editing pages) is restricted to users with admin (or host) privileges, but the rest can be accessed by whatever roles you determine to have edit rights. You can set those for each sub folder of your portal (under /portals/{PortalID}/), for each page, and for each module within each page.

You even have the option of securing folders so their content can't be accessed simply by entering the URL into the address bar of your browser, but only via the DNN site (and only if you belong to a security role that has permissions on that folder).

So it should be possible to import EVERYTHING directly into DNN, including all your user accounts (if you don't know the passwords of those accounts, have DNN generate random passwords and send out notification emails to the users with the new URL, their login name and the password). Re-create your pages using DNN and any of the standard or commercial modules, and copy your protected files into a protected folder within the DNN framework.

A completely different approach (but one that to me doesn't make much sense) would be to embed your existing site through an IFrame. But unless you need any of the DNN functionality, I wonder why you'd want to migrate in the first place if you continue using the old application... You could also create a DNN module that does exactly what your old application did, using the old DB. Again, I'm not sure this makes too much sense though...

Hope my reply is making sense. If not I'll be happy to try and clarify.

Vera

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How can I implement .net forms authentication in DNN?How can I implement .net forms authentication in 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