Link AddNegotiate to API doc in WinAuth topic (#17132)
parent
2248fb94e9
commit
4b04c7393a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue