Reputation: 2252
I've been developing a web site where I need simple authentication. I've already have a form with simple fields (username, e-mail, password) but I also want to integrate facebook, twitter and google + authentication. The problem is that I'm new in this kind of authentication and I've been searching at google for a nice tutorial (from beginning to end) but it has been worthless. I've already had the client part working:
FB.getLoginStatus(function(response) {
if (response.authResponse) {
this.location = '/facebook/token/' + response.authResponse.accessToken;
testAPI();
}
else {
console.log(response.authResponse)
FB.login(function(response) {
if (response.authResponse) {
this.location = '/facebook/token/' + response.authResponse.accessToken;
}}, {scope: 'email'});
//FB.login();
}
});
Can anyone help me?
Thank you
Upvotes: 3
Views: 1423
Reputation: 1360
There is a module for that! Its ScnSocialAuth. It is an amazing module and supports Google, Facebook, Twitter, Yahoo!, etc. I have used that and it is very easy to configure. Just configure the api keys and you are good to go!
Upvotes: 3
Reputation: 750
Zend Framework 2 has so called "service components" that provide simple API for accessing Twitter and other web services. Take a look at this page: http://framework.zend.com/manual/2.2/en/index.html#zendservicereference
Upvotes: 1