Skip to content

Support for repository authentication via node URL in NVS #312

@NVSuser

Description

@NVSuser

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions