Revert "Test host: bind Kestrel to Site:Authority instead of dynamic port"
This reverts commit 402bcc1db8.
This commit is contained in:
parent
1ab0bef9a4
commit
09604092c5
3 changed files with 17 additions and 76 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue