-
Notifications
You must be signed in to change notification settings - Fork 222
Description
Our organization uses internal repositories, that mirror the internet ones (for security reasons). Same is for Node.js repository. Unfortunately, our solution, based on jFrog Artifactory requires login. In most software this is done by passing credentials in the config file, however, it seems that NVS does not support that and when we try to pass the credentials we get 401 error due to this.
Would it be possible to consider adding passing authentication using Node.js repo URL or any other way?
Here’s our settings.json file that generates 401 error (using same creds with curl command is successful):
{
"aliases": {},
"remotes": {
"default": "node",
"node": “https://user.name:TOKEN@artifactory.our-organization.com/artifactory/nodejs-dist-remote"
}
}
After selecting a new version to download we get this (for security reasons I have changed my actual [user.name], org. name and TOKEN to words below):
Failed to download index: https://user.name:TOKEN@artifactory.our-organization.com/artifactory/nodejs-dist-remote/index.json
HTTP response status: 401