joelspadin-garmin / vscode-private-extension-manager

Private extension manager for Visual Studio Code
103 stars 22 forks source link

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

Open shell11d opened 3 years ago

shell11d commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

jorenbroekema commented 3 years ago

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

StephanKuempel commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

@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 commented 2 years ago

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