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!

    Unauthorized - You must log in to perform this action

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 13 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.
    • N Offline
      nick.mclean_7472
      last edited by

      I have an npm package available in an npm feed, and I can use ProGet to explore the package and download individual content files, but when I try to download the entire package through the ProGet interface I get 401 unauthorised.

      // 20200217101251
      // http://bss-prd-prs01:8624/npm/npm-all/node-sass/-/node-sass-4.11.0.tgz

      {
      "error": "Unauthorized",
      "reason": "You must log in to perform this action."
      }

      We're using windows authentication, and a test of my user privileges says I have Feeds_DownloadPackage. I'm also configured as admin.

      The ProGet Event Log doesn't log my attempted download. And fiddler just says the response was 401 unauthorised.

      N 1 Reply Last reply Reply Quote 0
      • N Offline
        nick.mclean_7472 @nick.mclean_7472
        last edited by

        @nick-mclean_7472 I added the anonymous user to the view and download packages task and now it gets a little further.

        I followed the instruction on setting up an npm feed. Node-sass 4.11.0 is available to be downloaded, and clicking download in ProGet now downloads the package.

        But when I try to use npm to download it, I set these config values,

        npm config set always-auth=true
        npm config set _auth=<my base64 encoded api:keyvalue>
        npm config set registry http://<my repo server>/npm/<my feed name>

        Then try the install,

        npm install node-sass@4.11.0

        The command outputs,

        node-sass@4.11.0 install C:\temp\npm\node_modules\node-sass
        node scripts/install.js

        Downloading binary from https://github.com/sass/node-sass/releases/download/v4.11.0/win32-x64-64_binding.node
        ...

        This download location isn't accessible to me. The package is hosted by ProGet and should be downloaded from there?!

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

          Unfortunately, the npm client does not support using Windows Integrated Authentication.

          This means that, to getting this working, you will need to create a second web site in IIS (pointing to the same directory) without Windows Authentication enabled.

          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