Solved

How do I use DotNetNuke Membership Authentication from Another Application?

Posted on 2010-09-10
4
1,147 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

930 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

14 Experts available now in Live!

Get 1:1 Help Now