ASP.NET Core 中的基本身份验证 [英] Basic Authentication in ASP.NET Core

查看:27
本文介绍了ASP.NET Core 中的基本身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题

如何在 ASP.NET Core Web 应用程序中使用自定义成员身份实现基本身份验证?

How can I implement Basic Authentication with Custom Membership in an ASP.NET Core web application?

备注

  • 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 Coreapplication 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆