Int*_*per 4 linux kerberos active-directory asp.net-core
我在 Linux 容器中运行 ASP.NET Core Web 应用程序。我需要为我的应用程序提供 Windows 身份验证。如何实施?
我认为可以使用可以通过 Kerberos 进行身份验证的反向代理服务器来解决该问题。
从 ASP.NET Core 3.0 开始,现在可以通过添加Microsoft.AspNetCore.Authentication.Negotiate NuGet 包在 Linux 和 MacOS 上使用 Windows 身份验证,并在您的Startup.ConfigureServices方法中使用它:
services.AddAuthentication(NegotiateDefaults.AuthenticationScheme)
.AddNegotiate();
Run Code Online (Sandbox Code Playgroud)
这在Startup.Configure:
app.UseAuthentication();
Run Code Online (Sandbox Code Playgroud)
以及文档中描述的一些附加配置。
| 归档时间: |
|
| 查看次数: |
4380 次 |
| 最近记录: |