]> git.lizzy.rs Git - rust.git/commit
Merge #6061
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Thu, 24 Sep 2020 14:08:46 +0000 (14:08 +0000)
committerGitHub <noreply@github.com>
Thu, 24 Sep 2020 14:08:46 +0000 (14:08 +0000)
commitde4fb138063c859f29b5a4cf6d382d94e38bb48c
treee5e605708e31a23983cbbe273bc8a6a72cb6d179
parent9d3483a74dba6b0a338230fd003d91a0447c5398
parent8eae893c767941bf02338cd74d7b103437783013
Merge #6061

6061: Allow to use a Github Auth token for fetching releases r=matklad a=Matthias247

This change allows to use a authorization token provided by Github in
order to fetch metadata for a RA release. Using an authorization token
prevents to get rate-limited in environments where lots of RA users use
a shared client IP (e.g. behind a company NAT).

The auth token is stored in `ExtensionContext.globalState`.
As far as I could observe through testing with a local WSL2 environment
that state is synced between an extension installed locally and a remote
version.

The change provides no explicit command to query for an auth token.
However in case a download fails it will provide a retry option as well
as an option to enter the auth token. This should be more discoverable
for most users.

Closes #3688

Co-authored-by: Matthias Einwag <matthias.einwag@live.com>