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:
parent
5626532571
commit
713eff934a
1 changed files with 3 additions and 0 deletions
|
|
@ -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?>
|
||||
|
|
|
|||
Loading…
Reference in a new issue