Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Proget 6.0.4: Unauthorized: Access is denied due to invalid credentials.
-
we connected the proget server to our domain authorization. After that, it became impossible to call a DELETE request for docker blobs due to error 401: Unauthorized: Access is denied due to invalid credentials.
If we enable access for EVERYONE, then deletion is allowed
If I understand correctly, first I need to get a token (call http://proget/v2/_auth) and use it when connecting to the service, but I did not find it in the documentation, where should I specify it?I tried to specify it in the header as a parameter with name "X-ApiKey" or "token", but still getting error 401. Please help with advice or link to documentation
-
Hello,
Are you doing an API call using PowerShell or something to delete packages? Did this happen after a recent upgrade to ProGet v6?
This post may help: https://forums.inedo.com/topic/3418/upgrading-from-5-to-6-causes-api-key-to-stop-working/2
We can definitely consider adding the API-key authentication back - we didn't realize it worked in the first place :)
Please let us know if this is the issue.
Cheers,
Alana
-
@atripp yes, very similar to my problem. I'll try tomorrow and get back with feedback.
-
@atripp I updated my code to use Bearer auth and everything worked great. Thanks for the help.
In my opinion you don't need to return API key authentication, but it would be great to write somewhere that you changed the authorization method.
-
@araxnid_6067 thanks, gload it worked! I'll work to update the documentation about this topic :)