Solved

How do I use DotNetNuke Membership Authentication from Another Application?

Posted on 2010-09-10
4
1,140 Views
Last Modified: 2012-08-14
I have a standard DNN installation with NB_Store.  I have a separate application that runs in a different virtual directory, but has access to the DNN database.  This app currently uses default "AspNetSqlMembershipProvider" authentication.   This application uses c# code "Membership.ValidateUser(sUserName,sPassword)" to determine if the user is a member.
I want this application to use the DNN authentication system/database.  How do I do this?  Is it as simple as modifying the app's web.config file?  Do I simply add a <connectionStrings> for the DNN SQL server?  How would I modify the "<membership defaultProvider=…" section since I don't see the equivalent in the DNN Web.Config?
0
Comment
Question by:ajacoa
  • 2
  • 2
4 Comments
 
LVL 30

Accepted Solution

by:
MlandaT earned 500 total points
ID: 33650693
Have you seen this: http://www.codeproject.com/KB/sharepoint/SharePointFBAwDNN.aspx

The concepts discussed here are for a Sharepoint application but they will work just as well for any other application needing forms based authentication using ASP.NET Membership and Role Providers (which is basically what DNN uses).
0
 

Author Comment

by:ajacoa
ID: 33654438
MlandaT,  Thanks for the link, it was helpful.
So it appears that if I just want to validate the user, it is as easy as modifying my ASP.NET app's web.config file so my app points to DNN's Membership provider.
However if I want to use Roles in my App (I currently don't), it may be substantially more difficult.
This is because DNN uses the standard ASP.NET Membership provider, but not the ASP.NET Role provider. Correct?
0
 
LVL 30

Expert Comment

by:MlandaT
ID: 33654814
Ajacoa... unfortunately, I am not too familiar with the DNN roles. I'd assume that it still uses the same. Will you need to use the roles in your app at a later stage?
0
 

Author Closing Comment

by:ajacoa
ID: 33684736
Single responder.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now