########################################################################################## VID-10: Tokenisation Support ########################################################################################## Issue Type: New Feature ----------------------------------------------------------------------------------------- Issue Information ==================== Priority: Major Status: Closed Resolution: Cannot Reproduce (2019-04-15 13:03:46) Project: Videos.bentasker.co.uk (VID) Reported By: btasker Assigned To: btasker Components: - Embed Code Targeted for fix in version: - v0.14 Time Estimate: 0 minutes Time Logged: 0 minutes ----------------------------------------------------------------------------------------- Issue Description ================== At startup, the player should make a call out to a path in order to authenticate and receive a token to allow playback of the video being embedded. Initially this endpoint will just return a static value, as the aim is simply to make sure the embed code cached in the wild has support for it before even considering enabling tokens in production. To receive the token, the player should place a request to https://videos.bentasker.co.uk/token_endpoint and include the following params in the query string - vidpath Path of the video to be played - ref The referring page The token server will respond with a JSON encapsulated object containing the following attributes - status (boolean) - is auth granted? - token (string) - the token string - exp (unsigned int) - Expiry epoch for the token, 0 if no expiry The embed code then needs to append token and exp to the manifest path the player will use as query string arguments t and e ----------------------------------------------------------------------------------------- Issue Relations ================ - relates to VID-11: Token Minter ----------------------------------------------------------------------------------------- Activity ========== ----------------------------------------------------------------------------------------- 2019-04-15 12:40:45 git ----------------------------------------------------------------------------------------- -- BEGIN QUOTE -- Repo: videos.bentasker.co.uk Host:Rimmer commit 9d199e2e3b4041ba96dd0d09b723af1241051247 Author: Ben Tasker