Configure Repo 2 with
- npm-group npm group repository containing an npm-proxy to the official registry
- Anonymous access disabled ( to ensure auth is required to access repo content )
- default admin user with admin123 password
Configure an npm client with the following ~/.npmrc file:
Ensure you have a test package.json in the current directory that has dependencies.
Try to install packages from the npm-group repo:
Result is all downloads work because YWRtaW46YWRtaW4xMjM= is the Base64 encoded username and password ( admin:admin123 ).
The npm client sends the following Authorization header indicating it is sending a Bearer token:
The same configuration against Repo 3 does not work.
The client request should fail with 401 instead, since it sending a Bearer token, and repo 2 does not support a bearer token authentication.