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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Newbie question: access DNN framework from external web applicationNewbie question: access DNN framework from external web application
Previous
 
Next
New Post
1/21/2008 10:19 AM
 
Basically my situation is the following: I have installed a DNN installation (4.7) for my company and we want to test it with a pilot project.

What we want to do is importing all of our employees profile data (almost 100.000 people) in one database and to use ASP.NET 2.0 membership provider based upon users and roles based authorization for all our applications.
Since we also need a portal product, we decided to try out DNN: in one shot we have a portal and a repository for authorization.

It happens that such a pilot project is very important for the company, so at first we don't want to create DNN tabs with modules: we just decided to develop it as a pure ASP.NET 2.0 Web Application that stands on its own, BUT relies upon DNN authorization (for authentication we must use SSO-WAC), using forementioned ASP.NET 2.0 membership.
If the DNN is deemed ok for our purposes, I'm confident that in the next future we can develop real DNN portals.

We came from SharePoint experience, where you can access a portal context (audiences, users, portal objects such lists, ecc.) just using its Web URL.
What I want to do is the same for my pilot application: I'd like to authorize authenticated users by accessing DNN API, but for doing this I must get DNN context from a separated and different Web application.

Is it possible to obtain that? Are there any examples about this topic?

Thank you for whatever advice

Paul

 
New Post
1/25/2008 12:13 AM
 

Hi Paul,

Yes this is possible.  DNN isn't really doing anything outside the scope of any other .NET Web Application in existence, it just takes advantage of a lot of its features.  So in order to use the membership provider within DNN I would do the following

1) Let DNN install a database as it normally would by actually following all the steps to setting up a DNN site

2) Take most of your web.config (I believe this is release.config or debug.config in the source download) and copy all the <sections> relating to dotnetnuke as well as the actual <dotnetnuke> section and all its contents in this file.  Move this information to your new web.config.  Also, make sure you copy the machinevalidationkey you created your database with to your new web.config. 

3) copy the core DLL files (this will be the DotNetNuke.dll, plus you'll need some of the referenced files like WebUtility I think and some of the sql data providers (dotnetnuke.sqldataprovider.dll I think as well as all the memberhsip, profile, caching etc providers... these won't affect your current website, just communication when using the DNN framework.).  Some trial and error will get this perfect.

4) reference the DotNetNuke dll in your new web app.  call membership/user functions from there, should be working.  I'm stating alot of this blindly but I've done it before and had it work.  It all really comes down to making sure you have your config file correct, DNN heavily relies on it (which makes swapping certain parts out *really* easy)

Here is a post from ASP.NET where I used it in a unit testing scenario.  I seem to remember everything working... but this was back in early 2005...scary to think that was 3 years ago...

 

http://forums.asp.net/p/799690/848227.aspx#848227


------------- w00t!
 
New Post
11/22/2008 11:05 AM
 

I have a similar requirement sharing DNN with windows applications.  One program is a standalone windows app which creates users for both the DNN and windows program.  I have prototyped DNN code that uses the (dotnetnuke.dll)  UserController.CreateUser function to create a DNN user.  I'd like to build this function in a windows program.  The web.config contains the machinekey encrypt and decypt keys.  I'd like to have these values stored in a Sql Server db and have the UserController.CreateUser environment access these db values.  Same for createPassword/updatePassword.  I've tried to trace the DNN v4.9.0 code but have not found how these web.config machinekey values are accessed and "cached".

 
New Post
11/22/2008 5:45 PM
 

eqx eqx wrote
 

I have a similar requirement sharing DNN with windows applications.  One program is a standalone windows app which creates users for both the DNN and windows program. 

There is a free program that does part of that here: IWeb



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Newbie question: access DNN framework from external web applicationNewbie question: access DNN framework from external web application


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