How to ask for more details when using 3rd party authentication system (facebook, google)?
Last Post 06/05/2015 11:14 AM by siddharth. 5 Replies.
Author Messages Resolved
siddharth
Nuke Newbie
Nuke Newbie
Posts:9


--
05/26/2015 5:31 PM  
I've recently gone through the video that explains how to add facebook authentication in DNN site. I'm able to log in by using a test app in facebook all of which works great.

As per the requirement of my application, it is mandatory for a user to add some details like phone number, city, etc. When using default authentication option in DNN, I was able to add custom properties to appear in registration form. These properties are now a part of "UserProfile".

I'd like to know:

- is there any way I can ask user to enter these details to use third party authentication systems like facebook, google, twitter? So, that they give their consent and either have an option to add these additional values either at the time of log-in or after they are redirected to home page?

- if the only option left for me is to check for these missing values on landing page after they log-in irrespective of the authentication system, how can I redirect this user to the Edit Profile section of the site? I know I can use hyperlink to do so but what will be the NavigateURL property for this? I've only used this to call any other control using key till date.

As such I'm new to the DNN platform, I'm running out of ideas how to achieve this simple scenario. May be there is something very simple that I can't see!! Please advice me in the right direction if there are any solutions to this problem.
Joseph Craig
DNN MVP
Posts:11667


--
05/26/2015 6:42 PM  
I think that it is up to the authentication provider to get extra information to fill out a profile. I think that the default Active Directory provider does at least part of this. The Glanton AD provider does it very well. I've never used the other providers, but you could certainly extend them to do what you need.

The is also an option to require a "valid" profiles as part of the registration process. I assume that this works with all authentication providers, so you should give that some attention. Look under Site Settings, User Account. There is another option about using the authentication provider as part of registration, with a disclaimer that not all providers my work that way.

Joe Craig, Patapsco Research Group
Complete DNN Support
siddharth
Nuke Newbie
Nuke Newbie
Posts:9


--
06/01/2015 3:26 AM  
Hi Joseph,

I've tried to mark few user profile properties as required and checked the valid profiles option as you said. By using facebook login flow, user is now asked to enter the value for required properties. I'll try this with other providers as well. Cheers!
Joseph Craig
DNN MVP
Posts:11667


--
06/01/2015 7:07 AM  
I would try this with the standard login control to see that it works. Then, look at the code for the standard login to see how it is invoked.

Joe Craig, Patapsco Research Group
Complete DNN Support
siddharth
Nuke Newbie
Nuke Newbie
Posts:9


--
06/05/2015 10:09 AM  
Hi Joseph,

I've started learning services api in dnn now and I was wondering if you have any knowledge about how to use dnn's built-in and other supported authentication systems via a end-point? So that I can access it from say a mobile app and all the requests talks to same instance of my dnn database for tables like Users and my custom modules?
siddharth
Nuke Newbie
Nuke Newbie
Posts:9


--
06/05/2015 11:14 AM  
Just to add to my post above, I've managed to create a api controller that can programmatically add a user in the database. However, this uses DNN's security membership. Can you please guide me how can I register a user from a native mobile app using facebook or google or twitter authentication system that my web app uses with respect to same DNN database instance?


---