使用CodeIgniter进行社会认证 [英] Social Authentication With CodeIgniter

查看:67
本文介绍了使用CodeIgniter进行社会认证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目,该项目应该整合Facebook Login&使用CodeIgniter的Twitter登录按钮,我想知道什么是最好的方法?由于该项目将来需要更多的社交登录"按钮(如LinkedIn,Google等).

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).

我听说过OpenID&扬·雷恩(JanRain).

I heared of OpenID & JanRain.

推荐答案

您可以使用Phil Sturgeon的Oauth/Oauth v2 Codeigniter库.

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是必经之路.使用起来更容易,更清洁.目前它支持:

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

  • Facebook
  • 四方形
  • GitHub
  • Google
  • PayPal
  • Instagram
  • Soundcloud
  • Windows Live
  • YouTube

Oauth v1是要使用的P.I.T.A,但恐怕某些流行的社交网站尚不提供Oauth v2 API

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

这篇关于使用CodeIgniter进行社会认证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆