diff options
author | Matt Ward <matt.ward@microsoft.com> | 2018-09-13 18:58:00 +0300 |
---|---|---|
committer | Matt Ward <matt.ward@microsoft.com> | 2018-11-20 15:55:21 +0300 |
commit | beab1cf2c3e717f77e3d44170966ea72d78e7c23 (patch) | |
tree | 90673aa77ab1b41bc5997a5938fc9bf9033c78b8 /main/src/addins/MacPlatform/MacPlatform.csproj | |
parent | 68513176a95cb82a7f25efa7b6c0b6027becc045 (diff) |
[NuGet] Fix credentials not accepted with package sources
When prompted for credentials to access a password protected package
source the credentials were not being sent to the server. The problem
was that the credentials need to be used with the HttpClientHandler's
Credentials which was not being done. Added a new interface
IHttpCredentialsHandler which needs to be implemented by one of
the HttpMessageHandlers so that credentials can be set by the
HttpSourceAuthenticationHandler when the user enters the username
and password.
Note that this is not working with the NSUrlSessionHandler currently.
The managed default handler is working as expected.
Diffstat (limited to 'main/src/addins/MacPlatform/MacPlatform.csproj')
-rw-r--r-- | main/src/addins/MacPlatform/MacPlatform.csproj | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/src/addins/MacPlatform/MacPlatform.csproj b/main/src/addins/MacPlatform/MacPlatform.csproj index e6639a8f5d..f13a15e3e8 100644 --- a/main/src/addins/MacPlatform/MacPlatform.csproj +++ b/main/src/addins/MacPlatform/MacPlatform.csproj @@ -119,6 +119,7 @@ </Compile> <Compile Include="MacPlatformSettings.cs" /> <Compile Include="MacHttpMessageHandlerProvider.cs" /> + <Compile Include="NSUrlSessionCredentialsHandler.cs" /> </ItemGroup> <ItemGroup> <None Include="packages.config" /> |