Device Authorization Flow 101: Logging in From Input Constrained Devices
summary
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
chapters (10)
- 0:00Device authorization flow intro
- 2:07Input-constrained devices
- 4:54Input issues solved
- 8:52Demo of device flow
- 13:07Coding device flow steps
- 19:27User experience during auth
- 23:53Leaderboard API backend
- 25:38Live auth flow demo
- 27:05Key takeaways
- 28:32Q&A
related talks
45mOAuth and beyond: Modern auth not only for the web
35mKEYNOTE: Go with the Flow
29mSmartAuth: User-Centered Authorization for the Internet of Things
32mRemote device sign in
46mOpening Doors with JSON Web Tokens
47mSwagbadge 101: Software and the Aiko framework
20mIdentity providers, your app, and everything in-between
23mRemote device sign-in – Authenticating without a keyboard
