~/talk

Device Authorization Flow 101: Logging in From Input Constrained Devices

Talkat PyOhio 2024 · 2024-07-27..07-28· [security, python]
slides:none on file

Explains device authorization flow by actually building a Micropython badge (Badge 2040) game that posts high scores: device requests a device code and user code, renders a QR, polls the authorization server every ~5 seconds, then receives JWT ID and access tokens. Back end is a FastAPI leaderboard that validates tokens from out Zero, saves scores to a JSON database, and updates the leaderboard. Demo shows the flow working end to end and the score upload succeeding.

AI-written summary · about

  1. 0:00Device authorization flow intro
  2. 2:07Input-constrained devices
  3. 4:54Input issues solved
  4. 8:52Demo of device flow
  5. 13:07Coding device flow steps
  6. 19:27User experience during auth
  7. 23:53Leaderboard API backend
  8. 25:38Live auth flow demo
  9. 27:05Key takeaways
  10. 28:32Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.