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 StartedValidate user from mobile deviceValidate user from mobile device
Previous
 
Next
New Post
9/1/2015 3:40 PM
 

I'm building an app for smart phones that read/writes to extra tables on my DNN site.  To perform the read/writes the app user must be validated on startup and pass in their userId with every request.
I'm thinking to achieve this the user must first create an account on the DNN site.  Then to use the app they would enter their user/pass in the app that would be passed up to a WCF service to be validated against the DNN database which would return their UserId from the DNN database.  Their UserID would then be held in the app until the LogOut deleted it.

How would one approach this?

 

 
New Post
9/1/2015 3:53 PM
 
have a look at client side modules, which use JSON to exchange data with DNN website.
You still need, however, some overhead for security. DNN 8 is planned to allow remote apps to access the site as well.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/2/2015 5:15 AM
 

Hi Sebastian.   Great to see you still here advising people :)

I was wondering if I could follow the path of the DNNlogin controls?    I would need to know how DNN does it online when a user is signing in to the website.  Obviously the user/pass is put in for validation.    What I'd like for my app to webservice is to pass in the user/pass and return the userIdGuid.  I could then use the GUID for every transaction following from that device to the web service.
I suppose what I'm looking for is the functions that DNN is using for validation.   
Any more ideas? 

 
New Post
9/2/2015 2:40 PM
 
DNN is using MS membership component (a rather old version) for authentication, you could either use the same or pass the credentials (encrypted) to the server and get a token for subsequent actions.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/14/2015 6:30 AM
 

Thank you Sebastian.
The answer as always is quite simple once you know how.   Everything is around the System.Web.Security / Membership class.   The best place for anyone to start is this video by Joe Stagner...
http://media.ch9.ms/ch9/f97e/59fc3d40...

With only a tiny bit of code I have it working in a basic level where I can put the username / password into a mobile app and the DNN site UserID Guid is returned.  It is important to note Joe Stagners security warnings about "packet sniffers" etc grabbing the information.

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedValidate user from mobile deviceValidate user from mobile device


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