You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Saves the access token (preferably encrypted) to local storage (~/.destreamer/token.cache or something like that to be consistent with every other project out there that needs to save state).
Decodes the token on every run, looks at the expiration date and decides if we still need to pop up a browser window to acquire a new token or we can proceed without user interaction.
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.
Can we get an access token for 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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: