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
{{ message }}
This repository has been archived by the owner on May 2, 2020. It is now read-only.
Having non anonymous sources for firmware files would be a common use case.
This could potentially be supported with zero changes to the public API interface.
Some rough pseudo code to give you an idea of a suggested approach:
// from lib/downloader.jsfunctiondownloadFirmware(uriToFile,options={}){constparsedUri=url.parse(uriToFile);constaccountName=parsedUri.hostname.split('.')[0].replace('-secondary','');// it's too late at night for wrestling with javascript date formatting T^TconstcanonicalizedHeaders=['x-ms-date:Fri, 11 Oct 2017 21:49:13 GMT','x-ms-version:2009-09-19'].join('\n');constcanonicalizedResource=`/${accountname}${parsedUri.path.replace(/\/$/,'')}`;consttoSign=`GET\n\n\n\n\n\n\n\n\n\n\n\n${canonicalizedHeaders}\n${canonicalizedResource}`;constsigned=someFancyHmacSigningFunction(toSign);constsignature=toBase64(signed);varrequestInfo={hostname: parsedUri.hostname,port: 443,path: parsedUri.path,method: 'GET',headers: {Authorization: `SharedKey ${accountName}:${signature}`},//disable session cachingagent: newhttps.Agent({maxCachedSessions: 0})};
...
The text was updated successfully, but these errors were encountered:
Having non anonymous sources for firmware files would be a common use case.
This could potentially be supported with zero changes to the public API interface.
Some rough pseudo code to give you an idea of a suggested approach:
The text was updated successfully, but these errors were encountered: