Escolar Documentos
Profissional Documentos
Cultura Documentos
social networks
phpXperts 2011
!lease
Okey# cool#
phpXperts 2011
registration"
phpXperts 2011
Hybrid Authentication
Login with Facebook
phpXperts 2011
money
You
phpXperts 2011
phpXperts 2011
phpXperts 2011
*Auth +.,
phpXperts 2011
"
-hat is *Auth"
phpXperts 2011
10
OAuth &.'
7e8t evolution o% OAuth (.' 9asy to im.lement More %lows to su..ort desktop and #obile and living roo# devices 7ot backward com.atible with *Auth :.,
phpXperts 2011
11
$ser;Agent 3low -eb 'erver 3low 6evice 3low $sername and !assword 3low Client Credentials 3low Assertion 3low
phpXperts 2011
12
Resource Owner
(Your website)
Client
Access Token
Authorization erver
Resource erver
phpXperts 2011
13
How to i#ple#ent"
phpXperts 2011
14
phpXperts 2011
15
te' (
File$ connect&'h'
Oauth2Consumer::getInstance('Facebook')->authorize();
phpXperts 2011
16
phpXperts 2011
te' )
phpXperts 2011
1!
te' *
phpXperts 2011
1"
$ser is new" create an account %irst *therwise# log him&her in to your a.. kee. users and connections table se.arate
)sers ( n *onnections
phpXperts 2011
20
phpXperts 2011
21
phpXperts 2011
22
Re%erences
Google API: Documentation: http://code.google.com/apis/accounts/docs/OAuth2.html API Console: https://code.google.com/apis/console/b/0/ Facebook: API Console: https://developers.faceboo .com/apps Documentation: https://developers.faceboo .com/docs/authentication/ Windows Live: API Console: https://manage.dev.live.com/ Documentation: http://msdn.microsoft.com/en!us/librar"/hh2#$%#&.asp' OAuth 2.0: http://tools.ietf.org/html/draft!ietf!oauth!v2!22 http://oauth.net/2/ Oauth2Consu e! Class " #$a %le: http://ra"nu'.com/ra"/labs/pro(ects/oauth2.)ip
phpXperts 2011
23
"
Thank you
phpXperts 2011 Md. Rayhan Chowdhury | ray@raynux.com 24
ource
phpXperts 2011
25