mon raspberry pi a une identité !

17

Upload: leonard-moustacchis

Post on 08-Feb-2017

132 views

Category:

Technology


3 download

TRANSCRIPT

Page 1: Mon Raspberry PI a une identité !
Page 2: Mon Raspberry PI a une identité !

Source:http://bgr.com/2014/02/18/how-much-money-does-candy-crush-make/

Page 3: Mon Raspberry PI a une identité !

Source:http://bgr.com/2014/02/18/how-much-money-does-candy-crush-make/

Page 4: Mon Raspberry PI a une identité !

“CandyCrushSagareceivethefollowing

information:allowpubliclistofbuddiesand

completeaddressemail.”

Page 5: Mon Raspberry PI a une identité !
Page 6: Mon Raspberry PI a une identité !

Howtousesocialnetwork

Joe

GET/me?access_token

Get userdataScope:publicprofile,mail,friends…

Candy Crush

Page 7: Mon Raspberry PI a une identité !
Page 8: Mon Raspberry PI a une identité !

Candy Crush Facebook

Page 9: Mon Raspberry PI a une identité !
Page 10: Mon Raspberry PI a une identité !

“CandyCrushSagareceivethefollowing

information:allowpubliclistofbuddiesand

completeaddressemail.”

Page 11: Mon Raspberry PI a une identité !
Page 12: Mon Raspberry PI a une identité !

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é !
Page 14: Mon Raspberry PI a une identité !

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é !

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é !

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é !

What’s next?