Skip to main content
net11.0

ASP.NET Core authentication handler used to authenticate requests using Negotiate, Kerberos, or NTLM. This package was built from the source code at https://github.com/dotnet/dotnet/tree/5254d8bcf59917edc1e1abc33bdf2442b77b1c70

Published
Oct 25, 2026
28d ago
Total Downloads
60.2M
60,220,578

Install

dotnet add package Microsoft.AspNetCore.Authentication.Negotiate --version 11.0.0-rc.3.26522.148
ProductVersions
.NET
net11.0

README

About

Microsoft.AspNetCore.Authentication.Negotiate contains an authentication handler used to authenticate requests using Windows Authentication (also known as Negotiate, Kerberos, or NTLM).

How to Use

To use Microsoft.AspNetCore.Authentication.Negotiate, follow these steps:

Installation

dotnet add package Microsoft.AspNetCore.Authentication.Negotiate

Configuration

To use the middleware, configure it in your ASP.NET Core app's Program.cs:

builder.Services.AddAuthentication(NegotiateDefaults.AuthenticationScheme)
   .AddNegotiate();

builder.Services.AddAuthorization();

var app = builder.Build();

Next, refer to the [official documentation](https://learn.microsoft.com/aspnet/core/security/authentication/windowsauth) for configuration details specific to your app's web server.

## Main Types

The main types provided by this package are:

* `NegotiateOptions`: Represents the options for configuring Negotiate Authentication handler behavior
* `NegotiateHandler`: The authentication handler responsible for processing Negotiate authentication requests and generating the appropriate authentication ticket

## Additional Documentation

For additional documentation and examples, refer to the [official documentation](https://learn.microsoft.com/aspnet/core/security/authentication/windowsauth) on Windows Authentication in ASP.NET Core.

## Feedback & Contributing

`Microsoft.AspNetCore.Authentication.Negotiate` is released as open-source under the [MIT license](https://licenses.nuget.org/MIT). Bug reports and contributions are welcome at [the GitHub repository](https://github.com/dotnet/aspnetcore).

Changes from Previous Version

No structural changes between v11.0.0-rc.2.26504.105 and v11.0.0-rc.3.26522.148.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.