visual-studio - 没有 Azure 的 ASP.NET Core 个人用户帐户身份验证

标签 visual-studio authentication asp.net-core identity

我正在尝试创建一个 asp.net 核心项目(.net 核心 2.2)并且我选择个人用户帐户作为身份验证。问题是我需要添加域名、应用程序 ID 和注册或登录策略。我不想为此使用 Azure。我怎么能跳过它?

enter image description here

最佳答案

如果要使用 ASP.NET Identity ,请选择 Store user accounts in-app反而 :

enter image description here

编辑:

对于 Web API 应用程序,只有 Connect to an existing user store in the cloud内置模板,它将允许通过 JWT token 对用户进行身份验证,这样 Web API 就可以开箱即用,并使更改身份验证系统变得更简单,例如从应用内标识到 Azure AD B2C 或第三方解决方案(如 Identity Server)。

如果需要,您需要手动添加 ASP.NET Core Identity 服务。

关于visual-studio - 没有 Azure 的 ASP.NET Core 个人用户帐户身份验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57799201/

相关文章:

c# - 在 ASP.Net Core 中获取基本 URL

azure - 我如何获得身份验证响应(例如 : Email) from sign-in with Azure using Expo Authenthication (Bare Workflow)

file - 如何读取我的 ASP.NET Core 项目中的本地文件?

javascript - Visual Studio 中对 Ext Js 的 Intellisense 和 JsHint 支持

c++ - OpenCV 奇怪的内存损坏

authentication - Nginx 身份验证请求意外状态 404

python - 自定义web2py注册

azure - 如何将 Azure 应用服务 Web 应用连接到 Google SQL Server 数据库?

windows - SDK windows丛林

c++ - 链接器问题 VS2015。 LNK2019 和 LNK2001 未解析的外部符号