We help IT Professionals succeed at work.

New podcast episode! Our very own Community Manager, Rob Jurd, gives his insight on the value of an online community. Listen Now!

x

How do I use DotNetNuke Membership Authentication from Another Application?

ajacoa
ajacoa asked
on
1,258 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?
Comment
Watch Question

CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
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?
CERTIFIED EXPERT

Commented:
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?

Author

Commented:
Single responder.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.