Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 15 total
Thread Social Login
Sun, Jun 19 2016 9:44 AMPermanent Link

Eivind

All

So I have come to realize that the good old register and login with your email address is about to become obsolete these days. "Everyone" these days are using some kind of social platform. I have lately also been contacted by alot of my users asking if they can use "social login" instead of having to register / login with their email. After doing some research, about 95% of my users are using either FaceBook or linkedIn actively.

My current project is within manpower / personnel recruitment and the market is very competitive. I need to enable social logins in my project to stay on the top of it. Has anyone else done so with EWB?

My first approach will be with Facebook. Once that is implemented,  I will consider linkedIn.

Facebook have plenty of API's and the preferred one is JavaScript off-course. Would love to hear if anyone have done similar stuff before.

Would it be a good idea to load the Facebook Javasript API with EWB, or just have it in separate files and redirect to those script when the user click the Login with Facebook button? In that case, I would redirect back to the EWB again with a Facebook token after successful login

Any thoughts would be highly appreciated

Best regards

Eivind
Mon, Jun 20 2016 4:15 AMPermanent Link

Matthew Jones

Eivind wrote:

> I need to enable social logins in my project to stay on the top of it.

I look forward to your report on how to do it! I suspect that the key
will be that this is a server side thing, but that the browser code has
to participate in it. I'd hope it can all be done in an iFrame so your
code doesn't have to be abandoned and reloaded. Doing that with PayPal
payments is not simple (though not hard).

I note that a lot of places do login with Facebook or Google, but
LinkedIn might be best for some sites (depends on purpose of course).

--

Matthew Jones
Mon, Jun 20 2016 4:29 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Eivind,

<< Would it be a good idea to load the Facebook Javasript API with EWB, or just have it in separate files and redirect to those script when the user click the Login with Facebook button? In that case, I would redirect back to the EWB again with a Facebook token after successful login >>

I would use whatever is easiest for you.  Implementing the external interfaces for the API classes in EWB can be confusing at times, and sometimes there are things in the external JS API that prevent an easy implementation (Google Maps required a special "window" property).  However, if the JS API is something that can be implemented as an EWB external interface, then I would certainly suggest doing so because that will make your code much more reliable because the compiler will do more QA work for you. Smile

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Jun 21 2016 1:25 AMPermanent Link

Eivind

Tim

Yes, I'll settle with the easiest way in the beginning. Doing it this way does not use the fancy JavaScript API at all. Once the user clicks the "Login with facebook" button, I'll simply redirect to the facebook login with an app id that is set up already. Facebook will then authenticate the user and redirect back to a url on my server containing a code. There I will have to verify the code by initiating a secure GET request to Facebook with an app secret and receive a token in return. Now the last step is simply to redirect the user to the app again with the valid token for him to start using the app.

Next up is linkedIn I guess Smile

Eivind
Wed, Jul 13 2016 8:38 PMPermanent Link

erickengelke

Eivind wrote:

> Yes, I'll settle with the easiest way in the beginning. Doing it this way does not use the fancy JavaScript API at all. >Once the user clicks the "Login with facebook" button,

OAuth2 is not hard, you can see it with my sample at
http://dark.uwaterloo.ca/oauth2/output/testproj.html

It's from my upcoming book on EWB.  
Wed, Jul 13 2016 8:40 PMPermanent Link

erickengelke

erickengelke wrote:

Eivind wrote:

>> Yes, I'll settle with the easiest way in the beginning. Doing it this way does not use the fancy JavaScript API at all.
>> Once the user clicks the "Login with facebook" button,

>OAuth2 is not hard, you can see it with my sample at
> http://dark.uwaterloo.ca/oauth2/output/testproj.html

>It's from my upcoming book on EWB.  

Oh, sorry, for some devices that has to be:

https://dark.uwaterloo.ca/oauth2/output/testproj.html
Thu, Jul 14 2016 5:34 AMPermanent Link

Matthew Jones

erickengelke wrote:

> It's from my upcoming book on EWB.  

Do tell more!

--

Matthew Jones
Thu, Jul 14 2016 9:58 AMPermanent Link

erickengelke

"Matthew Jones" wrote:

erickengelke wrote:

>> It's from my upcoming book on EWB.  

>Do tell more!

Sure, it has a lot of content for intermediate and advanced users.
And of course, a short introduction for new users with a Delphi background.

A brief topic listing can be found at:
 
  http://erickengelke.com/ewbannounce.html

but I will not be finished it until the PHP interface is available for testing.

There are a bunch of EWB examples at:
  http://erickengelke.com
The source code is in the book, most of them are about a page long, I don't believe in long examples,
I like something short and succinct.

I will announce it in a new topic when it's ready.
Thu, Jul 14 2016 10:07 AMPermanent Link

Boris B

Looks awesome!  Just what I need :D

Can't wait for it to come out, although it looks like we'll need 2.0.5 out the door first :P
Thu, Jul 14 2016 11:11 AMPermanent Link

Matthew Jones

erickengelke wrote:

> A brief topic listing can be found at:
>   
>    http://erickengelke.com/ewbannounce.html

Looks good. You might like to try some PhoneGap (or whatever it is
called today) too - I did it with v1 and the main thing was to have a
loader page that redirects to the SPA page. That would work well with
the calling other Javascript to access custom code.

I look forward to reading it all.

--

Matthew Jones
Page 1 of 2Next Page
Jump to Page:  1 2
Image