emgarten / NuGet.CatalogReader

NuGet v3 catalog reader
MIT License
45 stars 11 forks source link

Feed with authentication #24

Open kratotheron opened 2 years ago

kratotheron commented 2 years ago

Is possible to add the support for the feed with authentication? feed example: https://nuget.telerik.com/v3/index.json

kratotheron commented 2 years ago

Basic authentication

emgarten commented 2 years ago

Are you trying to mirror the feed or read the catalog?

kratotheron commented 2 years ago

Mirror

Distinti saluti, Enea Del Lama


From: Justin Emgarten @.> Sent: Tuesday, August 9, 2022 8:37:56 AM To: emgarten/NuGet.CatalogReader @.> Cc: kratotheron @.>; Author @.> Subject: Re: [emgarten/NuGet.CatalogReader] Feed with authentication (Issue #24)

Are you trying to mirror the feed or read the catalog?

— Reply to this email directly, view it on GitHubhttps://github.com/emgarten/NuGet.CatalogReader/issues/24#issuecomment-1208973224, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKR7QGUH3QEQ5ED4NWDQHMDVYH4EJANCNFSM5QJS7MFQ. You are receiving this because you authored the thread.Message ID: @.***>

emgarten commented 2 years ago

Currently auth isn't supported for NuGetMirror.

It could be added as a feature since NuGetMirror uses the same NuGet http client as NuGet.exe

kratotheron commented 2 years ago

Thank you for your answer. I can help you to implement this feature?


From: Justin Emgarten @.> Sent: Tuesday, August 9, 2022 6:14:34 PM To: emgarten/NuGet.CatalogReader @.> Cc: kratotheron @.>; Author @.> Subject: Re: [emgarten/NuGet.CatalogReader] Feed with authentication (Issue #24)

Currently auth isn't supported for NuGetMirror.

It could be added as a feature since NuGetMirror uses the same NuGet http client as NuGet.exe

— Reply to this email directly, view it on GitHubhttps://github.com/emgarten/NuGet.CatalogReader/issues/24#issuecomment-1209591346, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKR7QGQWRUZSN5PRICLFQ4LVYJ7WVANCNFSM5QJS7MFQ. You are receiving this because you authored the thread.Message ID: @.***>

emgarten commented 2 years ago

A PR would be great, take a look at: https://github.com/emgarten/NuGet.CatalogReader/blob/main/src/NuGet.CatalogReader/HttpReaderBase.cs

This is where it sets up the http client using the NuGet.Protocol library.

vonj commented 1 year ago

If ran in an Azure pipeline, would it pick up the configuration from the Nuget Authentication task automatically?

emgarten commented 1 year ago

@vonj no, currently there is no auth being performed