Social Authentication With CodeIgniter

吃可爱长大的小学妹 提交于 2019-12-08 02:11:43

问题


I have a project where I'm supposed to integrate Facebook Login & Twitter Login buttons using CodeIgniter, I was wondering what would be the best approach? As this project requires more Social Login buttons in the future (like LinkedIn , Google , etc).

I heared of OpenID & JanRain.


回答1:


You can use Phil Sturgeon's Oauth/Oauth v2 Codeigniter libraries.

  • https://github.com/philsturgeon/codeigniter-oauth
  • https://github.com/philsturgeon/codeigniter-oauth2

Oauth v2 is the way to go. Much easier and cleaner to use. Currently it supports:

  • Facebook
  • Foursquare
  • GitHub
  • Google
  • PayPal
  • Instagram
  • Soundcloud
  • Windows Live
  • YouTube

Oauth v1 is a P.I.T.A to use, but I'm afraid some popular social websites don't provide an Oauth v2 API yet




回答2:


Check out -

1) HybridAuth

2) Opauth



来源:https://stackoverflow.com/questions/12131208/social-authentication-with-codeigniter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!