Microsoft.Identity.Web Library
Microsoft.Identity.Web
Microsoft.Identity.Web version
3.10.0
Web app
Not Applicable
Web API
Protected web APIs (validating tokens)
Token cache serialization
Not Applicable
Description
This applies to Microsoft.Identity.Web.OidcFic project.
Reproduction steps
- Don't register IConfiguration with a service collection and try to resolve IOidcIdpSignedAssertionLoader.
Error message
System.InvalidOperationException : Unable to resolve service for type 'Microsoft.Extensions.Configuration.IConfiguration' while attempting to activate 'Microsoft.Identity.Web.OidcFic.OidcIdpSignedAssertionLoader'.
Id Web logs
No response
Relevant code snippets
var oidcIdpSignedAssertionLoader = serviceProvider.GetService<IOidcIdpSignedAssertionLoader>();
Regression
No response
Expected behavior
One should be able to resolve IOidcIdpSignedAssertionLoader without registering IConfiguration explicitly.