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 StartedAuthenticate App-User via facebook to use API EndpointsAuthenticate App-User via facebook to use API Endpoints
Previous
 
Next
New Post
1/23/2017 11:13 AM
 

Hi there!

 

thanks to the DNN Documentation center I have successfully managed to implement JWT Login/Auth for my Smartphone App which is accessing different API-Endpoints on my DNN8 Module  / API Project. (http://www.dnnsoftware.com/docs/administrators/jwt/index.html)

This works great for Login from the App with Username/Password which is verified against the DNN-Users in the Database of the Portal and issues a Token that is then used to access my API Functions.

Now I want to allow the app-users to login/authenticate via their facebook login.

I read a lot of blogposts and articles that I found via google, but was not able to figure out how to transfer this to my situation.

https://www.asp.net/web-api/overview/security/external-authentication-services

http://hintdesk.com/c-use-asp-net-identity-external-authentication-with-desktop-application/

http://bitoftech.net/2014/08/11/asp-net-web-api-2-external-logins-social-logins-facebook-google-angularjs-app/

http://stackoverflow.com/questions/41763630/dotnetnuke-oauth-owin-external-login-with-facebook/41763784#41763784

and many more ... but it seems I do not find the right entry point for getting ahead with this demand.

I do not want to reinvent the wheel and i wonder if there a way to use what DNN already does for the facebook-authentication on the Portal Level to make it work from external Apps too.

Can anyone point me in the right direction how this can be implemented in my modules (JWT-) authentication or API mechanism

Any help is highly appreciated

Thanks in advance and kind regards

 

 
New Post
5/31/2019 5:54 PM
 
I have exactly the same requirements. To authenticate or create a member from a Facebook login using a Javascript & Web Services type implementation.

Sad to say that it appears that very few of these types of DNN forum posts get responded to lately. I feel the strength of the DNN community is not what it used to be. My last 3 questions in the DNN Forums had no responses.

I am forced to use a Web -Services Facebook Authentication method because I want to run a my DNN site as a HTML5 PWA App inside Facebook Games (apps.facebook.com/mydnnsite).

The std DNN Facebook Authentication provider does not work for when it runs inside a Facebook iFrame. It looks like I have to use Facebook's Javascript SDK in replace of the std DNN Server-side Facebook Oauth Login Provider. This means I need to create a DNN Web-Service that does the following:

1) Create a new user account in DNN Member Tables if no match is found for the the Facebook Email.
2) Automatically Authenticate them if they already have a Facebook initiated DNN account and they are logged into Facebook.

Did you any up implementing any of this yourself?

Regards Les.
 
New Post
6/4/2019 1:14 AM
 
Hi Les,

no I am sorry, I didnt receive any hint on how to proceed with this and so I dropped the idea of also allowing fb-login and just implemented "normal" auth via email and password
Kind regards

 
New Post
6/4/2019 3:45 AM
 
Hi Les and Gerald,

I would recommend to open an issue on GitHub: https://github.com/dnnsoftware/Dnn.Pl...

As far as I know there are problems with the Facebook Authentication Provider. I never used that, so I can't give you a better answer, sorry...

Happy DNNing!
Michael

Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedAuthenticate App-User via facebook to use API EndpointsAuthenticate App-User via facebook to use API Endpoints


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