Mon Raspberry PI a une identité !
-
Upload
leonard-moustacchis -
Category
Technology
-
view
134 -
download
3
Transcript of Mon Raspberry PI a une identité !
![Page 1: Mon Raspberry PI a une identité !](https://reader035.fdocuments.net/reader035/viewer/2022062306/589a637d1a28abc3438b63d5/html5/thumbnails/1.jpg)
![Page 2: Mon Raspberry PI a une identité !](https://reader035.fdocuments.net/reader035/viewer/2022062306/589a637d1a28abc3438b63d5/html5/thumbnails/2.jpg)
Source:http://bgr.com/2014/02/18/how-much-money-does-candy-crush-make/
![Page 3: Mon Raspberry PI a une identité !](https://reader035.fdocuments.net/reader035/viewer/2022062306/589a637d1a28abc3438b63d5/html5/thumbnails/3.jpg)
Source:http://bgr.com/2014/02/18/how-much-money-does-candy-crush-make/
![Page 4: Mon Raspberry PI a une identité !](https://reader035.fdocuments.net/reader035/viewer/2022062306/589a637d1a28abc3438b63d5/html5/thumbnails/4.jpg)
“CandyCrushSagareceivethefollowing
information:allowpubliclistofbuddiesand
completeaddressemail.”
![Page 5: Mon Raspberry PI a une identité !](https://reader035.fdocuments.net/reader035/viewer/2022062306/589a637d1a28abc3438b63d5/html5/thumbnails/5.jpg)
![Page 6: Mon Raspberry PI a une identité !](https://reader035.fdocuments.net/reader035/viewer/2022062306/589a637d1a28abc3438b63d5/html5/thumbnails/6.jpg)
Howtousesocialnetwork
Joe
GET/me?access_token
Get userdataScope:publicprofile,mail,friends…
Candy Crush
![Page 7: Mon Raspberry PI a une identité !](https://reader035.fdocuments.net/reader035/viewer/2022062306/589a637d1a28abc3438b63d5/html5/thumbnails/7.jpg)
![Page 8: Mon Raspberry PI a une identité !](https://reader035.fdocuments.net/reader035/viewer/2022062306/589a637d1a28abc3438b63d5/html5/thumbnails/8.jpg)
Candy Crush Facebook
![Page 9: Mon Raspberry PI a une identité !](https://reader035.fdocuments.net/reader035/viewer/2022062306/589a637d1a28abc3438b63d5/html5/thumbnails/9.jpg)
![Page 10: Mon Raspberry PI a une identité !](https://reader035.fdocuments.net/reader035/viewer/2022062306/589a637d1a28abc3438b63d5/html5/thumbnails/10.jpg)
“CandyCrushSagareceivethefollowing
information:allowpubliclistofbuddiesand
completeaddressemail.”
![Page 11: Mon Raspberry PI a une identité !](https://reader035.fdocuments.net/reader035/viewer/2022062306/589a637d1a28abc3438b63d5/html5/thumbnails/11.jpg)
![Page 12: Mon Raspberry PI a une identité !](https://reader035.fdocuments.net/reader035/viewer/2022062306/589a637d1a28abc3438b63d5/html5/thumbnails/12.jpg)
Howtoconnect device touseraccount easily andsmoothly?◦ OAuthdevice flow allow easy onboarding
◦ Tokenis generated forthedevice tied totheuser
◦ Device connects serviceAPIsecurely
◦ UserDashboardallow tomanageandrevoke token
![Page 13: Mon Raspberry PI a une identité !](https://reader035.fdocuments.net/reader035/viewer/2022062306/589a637d1a28abc3438b63d5/html5/thumbnails/13.jpg)
![Page 14: Mon Raspberry PI a une identité !](https://reader035.fdocuments.net/reader035/viewer/2022062306/589a637d1a28abc3438b63d5/html5/thumbnails/14.jpg)
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
}
![Page 15: Mon Raspberry PI a une identité !](https://reader035.fdocuments.net/reader035/viewer/2022062306/589a637d1a28abc3438b63d5/html5/thumbnails/15.jpg)
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
![Page 16: Mon Raspberry PI a une identité !](https://reader035.fdocuments.net/reader035/viewer/2022062306/589a637d1a28abc3438b63d5/html5/thumbnails/16.jpg)
Device receive anaccess tokenHTTP/1.1200OK
{"scope":[
"phone”,"email”,"address”,"profile »
],token_type":"Bearer","expires_in":"3599","access_token":"2c946f59-d365-4a10-9f81-9e538c2629a6"
}
![Page 17: Mon Raspberry PI a une identité !](https://reader035.fdocuments.net/reader035/viewer/2022062306/589a637d1a28abc3438b63d5/html5/thumbnails/17.jpg)
What’s next?