Comments (5)
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.
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.
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.
It sounds simple enough, but this isn't a high priority for me, so a PR would be much appreciated.
from klondike.
@chrisedebo leave it with me, i'll give it a go :)
from klondike.
Related Issues (20)
- Think I'm missing an installation step? HOT 3
- Nuget.exe push behaving differently pushing to Klondike v2.1.1 after upgrade from v.1.6.2 HOT 4
- "No symbol packages have been pushed to Klondike" message erroneously displayed on ui? HOT 1
- Klondike on Mono handles only 1-5 requests and then stop answering HOT 1
- Klondike won't show package unless you specify "all versions" HOT 2
- Symbols are not loaded HOT 6
- No symbol artifacts downloaded on nuget restore HOT 2
- The feed lists package... but multiple attempts to download the nupkg have failed.
- Can't run this from source - Trying to debug 500 internal server error HOT 1
- npm install fails - git://github.com/chriseldredge/broccoli-msbuild.git missing
- localhost:8080/nuget 404 not found
- Set up initial admin user on remote server (docker) HOT 1
- Package is not immutable HOT 4
- Turn off parts of UI
- Blurb for visitors
- '5.5.1+fd2f920875c33464efb4b5ac366d8b8a83239dc0' is not a valid version string
- dependency error when upload nuget contain netstandard2.1 dll
- Getting XML error when trying to install package on VS 2017 HOT 1
- Modifying the Getting Started info
- The API page has no menu
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from klondike.