从服务提供商项目转到身份项目后,序列不包含任何元素错误 [英] Sequence contains no elements error once I go from Service provider Project to Identity Project

查看:49
本文介绍了从服务提供商项目转到身份项目后,序列不包含任何元素错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 ITFoxtec SAML 2.0,我在其中启动了多个项目;TestIdpCoreTestWebAppCore.单击 TestWebAppCore 登录链接后,我会遇到错误 Sequence contains no elements.

I'm using ITFoxtec SAML 2.0 where I have started multiple projects; TestIdpCore and TestWebAppCore. Once I click on the TestWebAppCore login link, I face the error Sequence contains no elements.

推荐答案

错误是因为身份提供者 TestIdpCore 找不到依赖方 TestWebAppCore.

The error is because the identity provider TestIdpCore cannot find the relying party TestWebAppCore.

我认为 TestWebAppCore 端点可能发生了变化,或者应用程序没有响应.

I think maybe the TestWebAppCore endpoint have changed or that the application is not answering.

依赖方 TestWebAppCore 默认暴露在 https://localhost:44306/上.依赖方在身份提供者 TestIdpCore appsettings.json 中使用元数据端点https://localhost:44306/metadata"进行配置.

The relying party TestWebAppCore is default exposed on https://localhost:44306/. And the relying party is configured in the identity provider TestIdpCore appsettings.json with the metadata endpoint "https://localhost:44306/metadata".

  "Settings": {
    "RelyingParties": [
      {
        "Metadata": "https://localhost:44327/metadata"
      },
      {
        "Metadata": "https://localhost:44306/metadata"
      },
      {
        "Metadata": "https://localhost:44307/metadata"
      },
      {
        "Metadata": "https://localhost:44308/metadata"
      },
      {
        "Metadata": "https://localhost:44309/metadata"
      }
    ]
  }

如果 TestWebAppCore 端点已更改,您需要更改身份提供程序配置.

If the TestWebAppCore endpoint has changed you need to change the identity provider configuration.

这篇关于从服务提供商项目转到身份项目后,序列不包含任何元素错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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