ASP.NET Core 中的基本身份验证 [英] Basic Authentication in ASP.NET Core
问题描述
问题
如何在 ASP.NET Core Web 应用程序中使用自定义成员身份实现基本身份验证?
How can I implement Basic Authentication with Custom Membership in an ASP.NET Core web application?
备注
在 MVC 5 中,我使用了 中的说明文章 需要在
WebConfig
中添加一个模块.
In MVC 5 I was using the instructions in this article which requires adding a module in the
WebConfig
.
我仍在 IIS
上部署新的 MVC Core
应用程序,但这种方法似乎不起作用.
I am still deploying my new MVC Core
application on IIS
but this approach seems not working.
我也不想使用 IIS 内置支持基本身份验证,因为它使用 Windows 凭据.
I also do not want to use the IIS built in support for Basic authentication, since it uses Windows credentials.
推荐答案
由于潜在的不安全和性能问题,ASP.NET Security 将不包括基本身份验证中间件.
ASP.NET Security will not include Basic Authentication middleware due to its potential insecurity and performance problems.
如果您需要基本身份验证中间件进行测试,请查看 https://github.com/blowdart/idunno.Authentication
If you require Basic Authentication middleware for testing purposes, then please look at https://github.com/blowdart/idunno.Authentication
这篇关于ASP.NET Core 中的基本身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!