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 ...Create a DNN User and Log Him in via an outside Web AppCreate a DNN User and Log Him in via an outside Web App
Previous
 
Next
New Post
7/5/2012 4:35 PM
 

I have a web app that I have creating a user via the web services that the iWeb module exposes in DNN. Can anyone tell me an easy way to then turn right around and have it log that newly created person into the DNN site immediately afterwards?


 
New Post
7/5/2012 7:53 PM
 
Does anyone know if there is a module for this? I imagine one being able to send it an encrypted authentication string and it letting me go ahead and direct the client into the website as whatever user I specify so that they user doesn't have to log in.

Does anyone know if this is doable? :)
 
New Post
7/5/2012 9:17 PM
 

Not sure exactly what you have in mind, and I don’t know what iWeb provides back to you once a user is created, but you might get somewhere with the following code:

DotNetNuke.Entities.Users.UserController UC = newUserController();

UserInfo User = UC.GetUser(int_PortalID, int_UserID);

DotNetNuke.Security.PortalSecurity PS = new PortalSecurity();

PS.SignIn(User, bln_createPersistentCookie);

Perhaps wrap it in an ashx file and drop it somewhere inside the DNN install, post the PortalID and new UserID to it from your app. Then you can redirect from your app to the site and the user should be signed in.

 
New Post
7/6/2012 1:06 PM
 

Thank you for the response. However, I believe the CreateUser just gives me a string with the results of user creation. ie - "successful" , "failed because of this", "failed because of that".


I did not see anything called "SecurityPortal" anywhere in the object browser. Is that pseudo-code or was it meant to be a known object? :)

(I'm pretty new to DNN)
 
New Post
7/7/2012 8:07 AM
 

Hi

Not sure if this helps but there is very useful free file from  http://www.evotiva.com/Downloads.aspx  called "let me in"

This is designed to add a new host user when the host user PW has been lost.
It is just an aspx with some C# adding a user but it may help with method.

Ian


Mutate and Survive
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Create a DNN User and Log Him in via an outside Web AppCreate a DNN User and Log Him in via an outside Web App


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