Skip to content
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

Unable to authenticate, need: Basic realm="Artifactory Realm" #34

Open
shell11d opened this issue Feb 4, 2021 · 7 comments
Open

Unable to authenticate, need: Basic realm="Artifactory Realm" #34

shell11d opened this issue Feb 4, 2021 · 7 comments
Labels
documentation Improvements or additions to documentation

Comments

@shell11d
Copy link

shell11d commented Feb 4, 2021

Does this extension work with Jfrog artifactory where I created a npm registry?
When I follow all the setup tests and add authentication details in ~/.npmrc I still get the above error. Is there any other setup needed?

@mheuzey
Copy link

mheuzey commented Feb 16, 2021

I kept getting this as well. Adding the line
"always-auth": true,
to the registry settings, and then restarting VS Code seemed to fix it for me.

@joelspadin-garmin joelspadin-garmin added the documentation Improvements or additions to documentation label Feb 17, 2021
@joelspadin-garmin
Copy link
Owner

I haven't tested with Artifactory. If that setting makes it work though, that would be a good addition for the documentation.

@jorenbroekema
Copy link

Can you post your extensions.private.json for which it works? I can't get it to work at this moment for Artifactory

@StephanKuempel
Copy link

I have the same problem here giving "Unable to authenticate, need: Basic realm="Artifactory Realm"" when trying to configure an artifactory repository.
An example extensions.private.json would help, ideed.

@hondzik
Copy link

hondzik commented Feb 4, 2022

Hi,
following configuration is working for me. I spend hours trying to get it working and probably the most important part is the enablePagination :)

"registries": [
	{
		"name": "Artifactory Registry",
		"registry": "https://artifactory.com:443/artifactory/api/npm/...",
		"_auth": "base64 encoded username:apikey",
		"enablePagination": false
	}
]

@StephanKuempel
Copy link

@hondzik Thank you very much! I was just about posting here that i also found that "enablePagination" finding ;) After i figured out how to set the auth correctly, the extension took ages and ages doing something, so i gave up. But after some hours there was a error message popping up, which gave that hint with "enablePagination". It's working nicely now.

@amey2688
Copy link

@hondzik @StephanKuempel @shell11d @joelspadin-garmin is there any way to see what is happening in backgroud? it is loading for me as well since hours and i do not see any response/error .
i have already implemented the changes as mentioned in this thread

this is how my registry config looks like currently

"registries": [
{"name": "My Private Registry",
"registry": "https://artifactory.danskenet.net/artifactory/api/npm/db-npm-utvs-vscode-ext-test/",
"enablePagination":false}
],
// List of private extensions which should be recommended for users of this workspace.
"recommendations": [
]

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

No branches or pull requests

7 participants