Pin static OIDC config at startup to fix per-request discovery failures

Replaces the default ConfigurationManager with a FixedConfigurationManager
that returns the pre-fetched OpenIdConnectConfiguration synchronously, so
per-request GetConfigurationAsync can never fail due to network errors or
cancellation-token / lock-contention issues in the dynamic manager.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
dingo
2026-04-04 12:54:27 -04:00
co-authored by Claude Happy
parent 63f25a3764
commit 33b544a404
2 changed files with 19 additions and 2 deletions
+1
View File
@@ -7,6 +7,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" />
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" />
<PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" />
<!-- Design-time only: enables 'dotnet ef migrations add' targeting this project -->
<PackageReference Include="Microsoft.EntityFrameworkCore.Design">