Open kratotheron opened 2 years ago
Basic authentication
Are you trying to mirror the feed or read the catalog?
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: @.***>
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
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: @.***>
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.
If ran in an Azure pipeline, would it pick up the configuration from the Nuget Authentication task automatically?
@vonj no, currently there is no auth being performed
Is possible to add the support for the feed with authentication? feed example: https://nuget.telerik.com/v3/index.json