Link AddNegotiate to API doc in WinAuth topic (#17132)

pull/17134/head
Luke Latham 2020-02-26 15:16:12 -06:00 committed by GitHub
parent 2248fb94e9
commit 4b04c7393a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ description: Learn how to configure Windows Authentication in ASP.NET Core for I
monikerRange: '>= aspnetcore-2.1'
ms.author: riande
ms.custom: "mvc, seodec18"
ms.date: 12/09/2019
ms.date: 02/26/2020
uid: security/authentication/windowsauth
---
# Configure Windows Authentication in ASP.NET Core
@ -153,7 +153,7 @@ The [Microsoft.AspNetCore.Authentication.Negotiate](https://www.nuget.org/packag
> [!NOTE]
> The Negotiate handler detects if the underlying server supports Windows Authentication natively and if it's enabled. If the server supports Windows Authentication but it's disabled, an error is thrown asking you to enable the server implementation. When Windows Authentication is enabled in the server, the Negotiate handler transparently forwards to it.
Add authentication services by invoking <xref:Microsoft.Extensions.DependencyInjection.AuthenticationServiceCollectionExtensions.AddAuthentication*> and `AddNegotiate` in `Startup.ConfigureServices`:
Add authentication services by invoking <xref:Microsoft.Extensions.DependencyInjection.AuthenticationServiceCollectionExtensions.AddAuthentication*> and <xref:Microsoft.Extensions.DependencyInjection.NegotiateExtensions.AddNegotiate*> in `Startup.ConfigureServices`:
```csharp
// using Microsoft.AspNetCore.Authentication.Negotiate;