Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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.

    Scheduled Pinned Locked Moved Support
    5 Posts 2 Posters 21 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • araxnid_6067A Offline
      araxnid_6067
      last edited by

      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.
      72d61ec2-b856-4106-a9c1-cf2aa4f14606-image.png

      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?

      b5833b25-c313-4742-a51b-3771165693ae-image.png

      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

      1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer
        last edited by

        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

        araxnid_6067A 1 Reply Last reply Reply Quote 0
        • araxnid_6067A Offline
          araxnid_6067
          last edited by

          @atripp yes, very similar to my problem. I'll try tomorrow and get back with feedback.

          1 Reply Last reply Reply Quote 0
          • araxnid_6067A Offline
            araxnid_6067 @atripp
            last edited by

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

            atrippA 1 Reply Last reply Reply Quote 1
            • atrippA Offline
              atripp inedo-engineer @araxnid_6067
              last edited by

              @araxnid_6067 thanks, gload it worked! I'll work to update the documentation about this topic :)

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post
              Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation