Coder Social home page Coder Social logo

Comments (5)

chriseldredge avatar chriseldredge commented on July 20, 2024

I didn't consider mirroring from repositories that require credentials, but changes could be made to MirroringPackageRepositoryFactory to send either an API key or basic authentication credentials.

This will require code changes.

from klondike.

chriseldredge avatar chriseldredge commented on July 20, 2024

Do you have a spare private feed you can grant access to me on? I don't have any private feeds and it would be helpful to have one to add support for this. My myget.org username is chriseldredge.

from klondike.

chrisedebo avatar chrisedebo commented on July 20, 2024

Hi Chris,

Sadly I don’t have the access to grant you a private feed. Sorry about that.

The authentication is just basic_auth though. So could be simulated on a Klondike feed relatively easily.

AFAIK this part is where the fix will sit.

remoteRepository.SendingRequest += (s, e) =>
{
e.Request.Timeout = (int) timeout.TotalMilliseconds;

                ((HttpWebRequest) e.Request).UserAgent = userAgent;

                e.Request.Headers.Add(RepositoryOperationNames.OperationHeaderName, RepositoryOperationNames.Mirror);
            };

        return remoteRepository;

In theory it’s just a case of adding a new header with the relevant base64 encoded username and password string. Sadly I’ve not had time to go back through the code to work out how to get those details passed in if appropriate. I’m not really a developer, I’m a sysadmin with a few dev skills.

There are a couple of guys here who may be able to help me extend your app and send you a pull request. I’ll see what I can do :o)

Cheers

Chris

From: Chris Eldredge [mailto:[email protected]]
Sent: 06 March 2014 21:24
To: themotleyfool/Klondike
Cc: Chris Nicel
Subject: Re: [Klondike] Unable to use myget.org authenticated feed as the packageMirrorTargetUrl (#38)

Do you have a spare private feed you can grant access to me on? I don't have any private feeds and it would be helpful to have one to add support for this. My myget.org username is chriseldredge.


Reply to this email directly or view it on GitHubhttps://github.com/themotleyfool/Klondike/issues/38#issuecomment-36938814.

15below Limited: Company registered in England and Wales No 3945289
Registered Office: Lyndean House, 43-46 Queens Road, Brighton BN1 3XB, United Kingdom

15below Australia Pty Limited: ABN 25 132 716 379
Level 21, Tower 2 Darling Park, 201 Sussex Street, Sydney, NSW 2000, Australia

Please think about the environment before printing this email.


This email and any attachments may be confidential and/or legally privileged and are solely for the use of the intended recipient. If you have received this email in error please contact the sender. Any views or opinions expressed within this e-mail are solely those of the sender, and do not necessarily represent those of 15below unless otherwise specifically stated. Although 15below has taken every reasonable precaution to ensure that any attachment to this e-mail has been checked for viruses, it is strongly recommended that you carry out your own virus check before opening any attachment, as we cannot accept liability for any damage sustained as a result of software virus infection.

from klondike.

chriseldredge avatar chriseldredge commented on July 20, 2024

It sounds simple enough, but this isn't a high priority for me, so a PR would be much appreciated.

from klondike.

BlythMeister avatar BlythMeister commented on July 20, 2024

@chrisedebo leave it with me, i'll give it a go :)

from klondike.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.