Feed with authentication
Opened this issue · 8 comments
kratotheron commented
Is possible to add the support for the feed with authentication?
feed example: https://nuget.telerik.com/v3/index.json
kratotheron commented
Basic authentication
emgarten commented
Are you trying to mirror the feed or read the catalog?
kratotheron commented
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 GitHub<#24 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKR7QGUH3QEQ5ED4NWDQHMDVYH4EJANCNFSM5QJS7MFQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
emgarten commented
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
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 GitHub<#24 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKR7QGQWRUZSN5PRICLFQ4LVYJ7WVANCNFSM5QJS7MFQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
emgarten commented
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
If ran in an Azure pipeline, would it pick up the configuration from the Nuget Authentication task automatically?