Closed snobu closed 4 years ago
It's working great, the only issue we may have is if the token expires mid-download but for that there is already #43
Closing since token cache has been implemented. Tracking /refreshtoken
implementation via https://github.com/snobu/destreamer/issues/43
We need a token cache that:
~/.destreamer/token.cache
or something like that to be consistent with every other project out there that needs to save state).This will dramatically improve the user experience since within the span of one hour (Azure AD issues tokens with 1-hour lifetime) users can download videos without having to log back in.
Decode sample:
Stretch goal:
https://*.microsoftstream.com
just by doing an Open ID connect / OAuth 2.0 dance using the default system browser (drop puppeteer altogether).Implementation in progress. See tokencache branch for status.