Revert "Test host: bind Kestrel to Site:Authority instead of dynamic port"
Some checks failed
Dotnet build and test / log-the-inputs (push) Has been cancelled
Dotnet build and test / build (push) Has been cancelled

This reverts commit 402bcc1db8.
This commit is contained in:
Paul Schneider 2026-07-12 03:48:49 +01:00
commit 09604092c5
3 changed files with 17 additions and 76 deletions

View file

@ -73,19 +73,6 @@ public sealed class WebServerFixture : WebHostFixture
// that plus the in-memory overrides below.
builder.AddConfiguration(null).AddInMemoryCollection(new Dictionary<string, string?>
{
// Test host: fixed authority + external URL. Matches
// the Kestrel bind in WebHostFixture.InitializeAsync
// (https://localhost:44300) so IdentityServer8's
// discovery document and the test client agree on the
// same base URL. IdentityServer8 reads Site:Authority
// to populate the `issuer` claim, the discovery
// document's `issuer` and endpoint URLs — leaving it
// pointed at the production host (e.g.
// mercure.pschneider.fr) made /.well-known/openid-configuration
// return URLs unreachable from the test, hence
// "Internal Server Error" in the discovery call.
["Site:Authority"] = "https://localhost:44300",
["Site:ExternalUrl"] = "https://localhost:44300",
[$"ConnectionStrings:{YavscConstants.YavscConnectionStringName}"] = "InMemory",
// SMTP test config: UserName non-null so MailSender
// exercises the Authenticate branch — the