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 ...Shared forms authenticationShared forms authentication
Previous
 
Next
New Post
5/14/2012 11:50 AM
 

Hi

has anyone managed to get shared forms authentication to work between two dnn installs?

I have set it up and both sites work but you don't get a single sign on effect.

I have tried it with a Lightswitch app and a dnn site and it works well. But not between two dnn sites.

I am guessing it doesn't work because of dnn's custom users system?

Can anyone explain?

I am looking for a single sign on solution between one or more separate dotnetnuke installations.

thanks

Gus


"if the only tool you have is a hammer you tend to see every problem as a nail" http://www.carawaydesign.com
 
New Post
5/14/2012 1:08 PM
 
this will work as long as both the sites share a common domain (e.g. site1.mysite.com & site2.mysite.com) - in addition you have to ensure that the machinekey's match as they are used to encrypy/decrypt passwords. Note: if your other site already has users then you will have to reset them as their passwords wont work if you alter the machinekey validationkey - http://www.dotnetnuke.com/Resources/Wiki/Page/Recover-passwords.aspx will show how to do this

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
5/14/2012 1:10 PM
 
BTW you have some other options for single-sign on, http://www.dotnetnuke.com/Resources/Wiki/Page/Authentication_Providers.aspx covers some of these.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
5/14/2012 5:27 PM
 
thanks Cathal

I managed to get it working. I needed to turn forms authentication on for both sites in IIS.

I am confused about this. I thought dnn would be using forms authentication. But if it was turned off clearly not as both sites worked with it off. Can you explain what authentication method dnn uses when forms auth is turned off? Anonymous?

Also, if I were to try Facebook authentication in my dnn sites would the user be able to log into FB and find any associated dnn site that he visits is automatically authenticated? Or does he still have to enter his FB credentials into the dnn site?

Gus

"if the only tool you have is a hammer you tend to see every problem as a nail" http://www.carawaydesign.com
 
New Post
5/14/2012 5:47 PM
 

hmm..

on second inspection this isn't working as I had hoped.  Site A has all the user accounts and site B is a vanilla dnn install.

When I created site B I used the same password for the host user that I used for the host user on site A. When I did this site B knew nothing about site A.  I then modified the web.config's appropriately.

If I log into either site as host I am automatically authenticated with the other which is exactly what I want.  However, if log into site A with any of the other user accounts I am not authenticated on site B.  Does this mean I have to sync the dnn user tables on site B with that on site A? If so it defeats the object.

The Lightswitch app I built works how I want it to. i.e. there are no users in the LS database. It uses the dotnetnuke DB to authenticate.

Gus


"if the only tool you have is a hammer you tend to see every problem as a nail" http://www.carawaydesign.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Shared forms authenticationShared forms authentication


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