Skip to content

NPM/NPM Shrinkwrap Basic Authentication Credential Support:

[email protected] bitbake-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3fetch2/npm: Add basic auth credential support for npm fetcherlib/bb/fetch2/npm.py+63 -10 replies
2/3fetch2/npmsw: Add basic auth credential support for npmsw fetcherlib/bb/fetch2/npmsw.py+36 -00 replies
3/3tests/fetch: Switch to working npm registry for registry_alternate testlib/bb/tests/fetch.py+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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(-)