Visual Studio 发布到 Azure 时出现 Microsoft Identity Platform 错误
Visual Studio Publish To Azure With Microsoft Identity Platform Error
我正在尝试使用 Azure AD Microsoft Identity Platform 将 asp.net 核心应用从 Visual Studio 2022 发布到 Azure 应用服务进行身份验证。在 Microsoft identity platform screen
,显示错误:
Failed to add password. Unable to save changes because the credential
limit has been reached. Please delete a credential and try again.
我看不到在哪里可以“删除”凭据。我也不确定这是来自我的 Azure 应用服务还是本地计算机。我在 Azure 上搜索了我的应用服务,但找不到与此相关的任何内容。
有什么想法吗?
我们已经在我们的本地环境中进行了测试,它工作正常,以下陈述基于我们的分析。
我们已经创建了一个 Asp .Net 核心(在 Visual Studio 2022 年),在我们的本地环境中将托管身份作为身份验证类型。
I'm not seeing where I can "delete" credentials.
I'm also not sure if this is from my Azure App Service or the local machine. I searched my App Service on Azure, but couldn't find anything related to this.
- 在发布项目之前,如果您正在配置 Microsoft 身份平台,那么您会看到一个选项,用于将机密存储在我们的本地环境中,如下所示。
如果你想在我们的本地机器上列出那些秘密
运行 从项目文件所在的目录执行以下命令:
dotnet user-secrets list
这里是示例输出以供参考:
您可以参考此文档以获取有关 Safe storage of app secrets in development in ASP.NET Core
的更多信息
- 如果您想在发布时配置 Microsoft 身份平台,您将获得一个选项,将此客户端密码存储为 Azure 应用程序设置
- 如上面的 GIF 所示,在从 vs 创建密钥时,您将 select 需要附加此客户端密钥的应用程序注册。
- 创建客户端机密后,您可以通过路由到 Active Directory > 应用程序注册> select 应用程序注册名称(您在从 vs 创建时选择)> 证书和机密来检查门户中的机密值.
您可以从那里删除 secret/credentials。
我正在尝试使用 Azure AD Microsoft Identity Platform 将 asp.net 核心应用从 Visual Studio 2022 发布到 Azure 应用服务进行身份验证。在 Microsoft identity platform screen
,显示错误:
Failed to add password. Unable to save changes because the credential limit has been reached. Please delete a credential and try again.
我看不到在哪里可以“删除”凭据。我也不确定这是来自我的 Azure 应用服务还是本地计算机。我在 Azure 上搜索了我的应用服务,但找不到与此相关的任何内容。
有什么想法吗?
我们已经在我们的本地环境中进行了测试,它工作正常,以下陈述基于我们的分析。
我们已经创建了一个 Asp .Net 核心(在 Visual Studio 2022 年),在我们的本地环境中将托管身份作为身份验证类型。
I'm not seeing where I can "delete" credentials. I'm also not sure if this is from my Azure App Service or the local machine. I searched my App Service on Azure, but couldn't find anything related to this.
- 在发布项目之前,如果您正在配置 Microsoft 身份平台,那么您会看到一个选项,用于将机密存储在我们的本地环境中,如下所示。
如果你想在我们的本地机器上列出那些秘密
运行 从项目文件所在的目录执行以下命令:
dotnet user-secrets list
这里是示例输出以供参考:
您可以参考此文档以获取有关 Safe storage of app secrets in development in ASP.NET Core
的更多信息- 如果您想在发布时配置 Microsoft 身份平台,您将获得一个选项,将此客户端密码存储为 Azure 应用程序设置
- 如上面的 GIF 所示,在从 vs 创建密钥时,您将 select 需要附加此客户端密钥的应用程序注册。
- 创建客户端机密后,您可以通过路由到 Active Directory > 应用程序注册> select 应用程序注册名称(您在从 vs 创建时选择)> 证书和机密来检查门户中的机密值. 您可以从那里删除 secret/credentials。