Open NatMarchand opened 2 years ago
Hello there ! Is there anything I can do to help you about this MR ? :)
Are you seeing this under .NET 6 or .NET Core 3.1?
The code above was tested on LinqPad with dotnet 7 but we also have issues with our apps running on dotnet 6
I'd like to understand better why it's invoked without a name/scheme only when the source reloads, as opposed to normal startup (first time). Can you find out?
Hi there! We are currently encountering a weird issue described as follow: Given I bind OAuth2IntrospectionOptions with an IConfiguration section and using a IOptionsMonitor somewhere
When a configuration provider triggers a reload
Then an exception occurs in the PostConfigureOAuth2IntrospectionOptions because dotnet tries to PostConfigure an unnamed options instance (which is of course not configured) and the message is "You must either set Authority or IntrospectionEndpoint"
Here's my repro (on LinqPad):
My PR fixes this behavior by registering a named PostConfigureOAuth2IntrospectionOptions.