View
132
Download
3
Category
Preview:
Citation preview
Source:http://bgr.com/2014/02/18/how-much-money-does-candy-crush-make/
Source:http://bgr.com/2014/02/18/how-much-money-does-candy-crush-make/
“CandyCrushSagareceivethefollowing
information:allowpubliclistofbuddiesand
completeaddressemail.”
Howtousesocialnetwork
Joe
GET/me?access_token
Get userdataScope:publicprofile,mail,friends…
Candy Crush
Candy Crush Facebook
“CandyCrushSagareceivethefollowing
information:allowpubliclistofbuddiesand
completeaddressemail.”
Howtoconnect device touseraccount easily andsmoothly?◦ OAuthdevice flow allow easy onboarding
◦ Tokenis generated forthedevice tied totheuser
◦ Device connects serviceAPIsecurely
◦ UserDashboardallow tomanageandrevoke token
Device request device codeHTTP
{"device_code":"7a95a0a4-6f13-42e3-ac3e-d3d159c94c55","user_code":"VAL12e0v","verification_uri":"http://openam.example.com/openam/oauth2/devic
e/user","interval"=5,"expires_in":300
}
Device token request loopPOST/token HTTP/1.1
curl
--dataclient_id=myDeviceAgentProfile
--dataclient_secret=password
--datagrant_type=http://oauth.net/grant_type/device/1.0
--datacode=7a95a0a4-6f13-42e3-ac3e-d3d159c94c55
http://openam.example.com/openam/oauth2/access_token
Device receive anaccess tokenHTTP/1.1200OK
{"scope":[
"phone”,"email”,"address”,"profile »
],token_type":"Bearer","expires_in":"3599","access_token":"2c946f59-d365-4a10-9f81-9e538c2629a6"
}
What’s next?
Recommended