Skip to content

feat: implement basic auth for private registry #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

feat: implement basic auth for private registry #20

wants to merge 2 commits into from

Conversation

thonythony
Copy link

Hello,

In my company we use a private registry (Nexus). Our registry is restricted by a basic authentication.
When we want to execute npm-consider install --test --production, the command fails when requesting package details because request is unauthorized.
So I suggest this feature :
If environment variables PRIVATE_REGISTRY_USER and PRIVATE_REGISTRY_PASSWORD are provided, then I encode them in base64 and I fill Authorization header in order to perform basic authentication.
We have tested it in our environment.

Is it ok for you ?

@thonythony
Copy link
Author

@delfrrr Hi! Have you reviewed my pull request ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant