Heimdall tests: register the GitHub OAuth scheme through host settings so the sign-in return path can be read from its state

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-11 04:42:50 +02:00
commit 713eff934a

View file

@ -368,6 +368,9 @@ public sealed class HeimdallHost : TestWebApplicationFactory
protected override void ConfigureWebHost(IWebHostBuilder builder)
{
base.ConfigureWebHost(builder);
// The GitHub OAuth scheme is registered from configuration read while the app builds, which only host settings reach.
builder.UseSetting("GitHubOAuth:ClientId", "configured-for-tests");
builder.UseSetting("GitHubOAuth:ClientSecret", "configured-for-tests");
builder.ConfigureAppConfiguration((_, configuration) =>
{
configuration.AddInMemoryCollection(new Dictionary<string, string?>