vscode-private-extension-manager icon indicating copy to clipboard operation
vscode-private-extension-manager copied to clipboard

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

Open shell11d opened this issue 4 years ago • 7 comments

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?

shell11d avatar Feb 04 '21 02:02 shell11d

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.

mheuzey avatar Feb 16 '21 22:02 mheuzey

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

joelspadin-garmin avatar Feb 17 '21 16:02 joelspadin-garmin

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

jorenbroekema avatar Mar 31 '21 14:03 jorenbroekema

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.

StephanKuempel avatar Feb 03 '22 16:02 StephanKuempel

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
	}
]

hondzik avatar Feb 04 '22 09:02 hondzik

@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.

StephanKuempel avatar Feb 05 '22 09:02 StephanKuempel

@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": [ ]

amey2688 avatar Aug 17 '22 11:08 amey2688