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

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedCheck Authnication by Webservice In DNNCheck Authnication by Webservice In DNN
Previous
 
Next
New Post
12/20/2012 9:26 AM
 

HI ,

User authentication will be done first on ourDNNwebsite(test1.com) , if data not found will be hooked from another DNN website(www.test2.com) Our Approach: i have Create a one webservice which have one methode :

<WebMethod(EnableSession:=True)> _
    Public Function LoginAuthenticationUser(ByVal PortalId As Integer, ByVal UserName As String, ByVal Password As String) As String

  Dim strMessage As String = Null.NullString
        Dim expiryDate As DateTime = Null.NullDate
        Dim loginStatus As UserLoginStatus = UserLoginStatus.LOGIN_FAILURE
        Dim objUser As UserInfo = UserController.ValidateUser(PortalId, UserName, Password, "DNN", "", "", "127.0.0.1", loginStatus)
        If objUser Is Nothing Then
            Return "FALSE"
        Else
            Return "TRUE"
        End If  End Function

if it is return sucess then login in our test1.com website how it is possible . because withoout

UserController.UserLogin(PortalId, objUser, PortalSettings.PortalName, AuthenticationLoginBase.GetIPAddress(), "False")

not login on website .

Please give me suggesion.

 

 

 

 

 

 

 


Ashish Tiwari
 
New Post
12/27/2012 8:48 AM
 

Hi

I think from webservice file you can't login. You can go for any other approach, like after validation you need to setup temp password for that user and return the same. Then from code redirect to some page with username and received temp password as query string. Where you can validate and gets the user login.

You can follow logic something similar to this below link:

http://www.dotnetnuke.com/Resources/Blogs/EntryId/1531/DotNetNuke-A-Single-Sign-on-Solution-C.aspx

Thanks
Sibabrata
Mindfire Solutions

 
New Post
12/27/2012 5:31 PM
 

DNN requires each USER to have a user record set on EACH individual DNN site.  This information is used to control menu permissions and pretty much every other part of the site.

As such you would need to include code to replicate the user details between each site - this is how ActiveDirectory type authentication works on dnn
 - a dnn user is created internally in the dnn portal to hold the dnn specific details for the current session.

Westa

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedCheck Authnication by Webservice In DNNCheck Authnication by Webservice In DNN


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