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
.
Asked
Active
Viewed 115 times
1

Jérôme Richard
- 41,678
- 6
- 29
- 59

Constro Umbraco
- 65
- 9
-
Image link https://i.imgur.com/CoawPM2.png – Anders Revsgaard Mar 10 '21 at 10:27
1 Answers
0
The error is because the identity provider TestIdpCore cannot find the relying party TestWebAppCore.
I think maybe the TestWebAppCore endpoint have changed or that the application is not answering.
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"
}
]
}
If the TestWebAppCore endpoint has changed you need to change the identity provider configuration.

Anders Revsgaard
- 3,636
- 1
- 9
- 25