From 44a4804f180b9f99da05db780710bed11aa7b86d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20=C4=B0brahim=20Aksoy?= Date: Mon, 8 Jun 2026 13:06:38 +0200 Subject: [PATCH] Clarify NegotiateAuthentication.IsAuthenticated post-failure behavior The IsAuthenticated property returns true after the authentication exchange has finished, including in many post-negotiation failure cases (verified across the Windows, Unix, and ManagedSpnego PAL implementations in dotnet/runtime). The previous summary (successfully completed and the session was established) implied that a true value means successful authentication, which is misleading. Update the summary, value, and remarks to clarify that callers must inspect the NegotiateAuthenticationStatusCode returned by GetOutgoingBlob to determine actual success. Also remove a misleading `(see IsAuthenticated)` reference on TargetName that reinforced the same misconception. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../NegotiateAuthentication.xml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/xml/System.Net.Security/NegotiateAuthentication.xml b/xml/System.Net.Security/NegotiateAuthentication.xml index 7e0b6c06de1..7173aa9fdf5 100644 --- a/xml/System.Net.Security/NegotiateAuthentication.xml +++ b/xml/System.Net.Security/NegotiateAuthentication.xml @@ -287,9 +287,19 @@ When System.Boolean - Gets a value that indicates whether authentication was successfully completed and the session was established. - To be added. - To be added. + Gets a value that indicates whether the authentication exchange has completed. + if the authentication exchange has completed; otherwise, . + + returned by the most recent call to . The status is on success; any other value indicates that authentication didn't complete successfully. + + ]]> + @@ -544,7 +554,7 @@ The negotiated level of protection is only available when the session ## Remarks For the server side of the authentication, the property returns the target name - specified by the client after successful authentication (see ). + specified by the client after authentication completes successfully. For the client side of the authentication, the property returns the target name specified in .