NPM/NPM Shrinkwrap Basic Authentication Credential Support:
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | fetch2/npm: Add basic auth credential support for npm fetcherlib/ | +63 | 0 replies | |
| 2/3 | fetch2/npmsw: Add basic auth credential support for npmsw fetcherlib/ | +36 | 0 replies | |
| 3/3 | tests/fetch: Switch to working npm registry for registry_alternate testlib/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] NPM/NPM Shrinkwrap Basic Authentication Credential Support:
From: "[email protected]" <[email protected]>
Changes in this commit include:
- npm fetcher changes:
- Add “username=”, “password=”, and “namespace=” parameters to “npm://” SRC_URI
- These parameters will be used to create a “npmrc” file that is passed into the NpmEnvironment object - used for authentication when connecting to NPM registry
- Username and password parameters will be forwarded along to wget fetcher after resolving the tarball_url in the npm view output.
- npmsw fetcher changes:
- Add “username=”, “password=”, “basic_auth_registry=” parameters to “npmsw://” SRC_URI
- For each registry specified in the shrinkwrap file, the fetcher will attempt to match the basic_auth_registry argument to the registry URL in the shrinkwrap, and if they match, then it will forward the username and password parameters along to the wget fetcher
- fetch test changes:
- skimdb.npmjs.com was shut down, so switched alternate_registry test to arbitrarily use registry.yarnpkg.
Eric Meyers (3):
fetch2/npm: Add basic auth credential support for npm fetcher fetch2/npmsw: Add basic auth credential support for npmsw fetcher tests/fetch: Switch to working npm registry for registry_alternate
test
lib/bb/fetch2/npm.py | 64 +++++++++++++++++++++++++++++++++++++++++- lib/bb/fetch2/npmsw.py | 36 ++++++++++++++++++++++++ lib/bb/tests/fetch.py | 2 +- 3 files changed, 100 insertions(+), 2 deletions(-)