Skip to main content

Kinocast

A streaming app for a TV: the screen shows a code, the viewer approves it on a phone, and the owner can remove a device from the sofa.

ApplicationPlanned
This example is planned. Not built yet. This page is the specification for the example.
Works with
JavaScript / TypeScriptReactExpress
Stack
A TV web app, Express streaming API

Scenario​

A TV has a remote and no keyboard. The app shows a short code and an address. The viewer opens the address on a phone and signs in with Google. The TV stays signed in for months. When the owner of the household removes the TV, it is signed out within seconds.

People and agents​

WhoRole in the applicationIdentity in LumoAuth
Household ownerPays, and manages devices.A user. The owner of a household.
Family memberWatches.A user. A member of the household.
TVPlays.A public application that uses the device grant.

Flows​

FlowWhat happensWhat LumoAuth does
CodeThe TV asks for a code and shows it.Issues a device code and a user code.
ApproveThe viewer signs in on a phone.The hosted activation page, with social sign-in.
PlayThe TV polls and receives tokens.Refresh tokens that rotate keep the TV signed in.
ProfilesA family member picks a profile.A relationship: member of the household, viewer of the profile.
RemoveThe owner removes the TV.Ends the session. A back-channel logout reaches the streaming API.

Parts​

PartBuilt withJob
TV appReact, @lumoauth/clientThe code screen and the player.
APIExpressStreams, households, and the logout receiver.

What the seed script creates​

  • An application with the device grant.
  • One social provider.
  • A namespace for households and profiles.

Walkthrough​

  1. Open the TV app in one window and the phone page in another.
  2. Type the code.
  3. Remove the device from the account page.