-
Notifications
You must be signed in to change notification settings - Fork 123
Support legacy authentication #10
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
Conversation
README.md
Outdated
|
||
The registry and dist-tag can be configured in the `package.json` and will take precedence on the configuration in `.npmrc`: | ||
Both the [token](https://docs.npmjs.com/getting-started/working_with_tokens) and the legacy (`username`, `password` and `email`) authentication are supported. It is recommended to use the [token](https://docs.npmjs.com/getting-started/working_with_tokens) authentication. The legacy authentication is supported as some npm private registry do not suport the token authentication. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe instead of
some npm private registry
it would be better to list the one we know? I think it’s only Artifactory right now? Maybe sth like this?
The legacy authentication is supported as the alternative npm registry Artifactory only supports that form of authentication at this point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about tthis
The legacy authentication is supported as the alternative npm registries Artifactory and npm-registry-couchapp only supports that form of authentication at this point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made the change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI failed, but PR looks good 👍
I keep getting a lot of That's going to be a tricky one to figure out... |
yeah debugging CI is the worst :( |
I check the availability of the the registry here. |
I'm trying to make this work, perfect timing :D Have you tested this against artifactory? I can't seem to make it work properly, but I don't get why it's failing. Tried Variables part:
Any ideas about what I should try to debug this? For all I know the token really isn't valid, I haven't used it before. But it would be great if (Artifactory version 4.16.0) EDIT: I just noticed a EDIT2: Didn't help... |
The logs mention From the README:
|
Yeah, I just noticed that... But that is set globally on Travis for us (tried removing my own ""), so I'd be surprised if it was wrong. I can ask the guys who put it there, but is there anything I can do myself to debug more? Or a way I can force the legacy version? |
Lines 9 to 13 in 5fb0b09
For all I know I get a 404 or something, some more information than "no matter what fails with Or maybe I'm missing some other variable so it doesn't use the correct registry |
It seems you want to configure the legacy auth. But you have an If you want to use the legacy auth configure it according to the doc with |
A Thanks for the help! |
Probably because of your |
Yup, I noticed, thanks! Opened up semantic-release/github#10 for it. Now I'm stuck at semantic-release/semantic-release#540, but I feel like I'm getting closer at least. Thanks for the help! |
We are supporting legacy npm authentication as we use npm-registry-couchapp for integration tests which doesn't support token authentication.
But it wasn't intended to be used in production.
It seems there is several private npm registry solution that supports only legacy authentication.
See semantic-release/semantic-release#500 and #6.
This PR improve our support of the legacy auth and mention it in the documentation.
Fix semantic-release/semantic-release#500