Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

@davidsh
Copy link
Contributor

@davidsh davidsh commented Aug 3, 2018

When we receive an initial NT auth challenge that has Connection: close set on the response,
we need to proceed with authentication on a new connection.

Fixes #30327

When we receive an initial NT auth challenge that has Connection: close set on the response,
we need to proceed with authentication on a new connection.

Fixes #30327
@davidsh davidsh added this to the 2.1.x milestone Aug 3, 2018
@davidsh davidsh self-assigned this Aug 3, 2018
@davidsh davidsh requested a review from geoffkizer August 3, 2018 21:26
@davidsh davidsh changed the title [release/2.1]Handle NT auth with Connection: close on initial challenge #31527 [release/2.1] Handle NT auth with Connection: close on initial challenge #31527 Aug 3, 2018
@davidsh
Copy link
Contributor Author

davidsh commented Aug 3, 2018

@dotnet-bot test Outerloop Windows x64 Debug Build
@dotnet-bot test Outerloop Linux x64 Debug Build
@dotnet-bot test Outerloop NETFX x86 Debug Build
@dotnet-bot test Outerloop UWP CoreCLR x64 Debug Build
@dotnet-bot test Outerloop OSX x64 Debug Build

@davidsh
Copy link
Contributor Author

davidsh commented Aug 27, 2018

@dotnet-bot Test Outerloop Windows x64 Debug Build

@dotnet-bot Test Outerloop OSX x64 Debug Build

@davidsh
Copy link
Contributor Author

davidsh commented Aug 30, 2018

CI Failures are unrelated. The PR is ready to merge.

@jamshedd jamshedd merged commit 7301c4f into dotnet:release/2.1 Aug 30, 2018
davidsh added a commit that referenced this pull request Sep 13, 2018
…etes (#32243)

PR #31589 introduced a regression in the case where we receive another 401 after Windows auth completes (this is caused by the user being successfully authenticated, but not authorized to access the specified resource). We were incorrectly draining the response in this case. As a result, the user would receive a disposed response and eventually throw an ObjectDisposedException.

The fix is to adjust the logic here where we only drain if we know we are going to send another request for the rest of the Windows auth (Negotiate/NTLM) challenge-response handshake.

Add new unit test for Windows auth scenario.
@danmoseley danmoseley modified the milestones: 2.1.x, 2.1.5 Sep 13, 2018
@danmoseley danmoseley added Servicing-approved Approved for servicing release and removed Servicing-approved Approved for servicing release Servicing-approved-2.1.5 labels Sep 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants