Is possible to customize OpenIdDictApplication adding a new field?
See original GitHub issueDear,
Our needs is to add a new field on OpenIddictApplication. We try to customize that entity, create an ef migration, update database schema, and referencing the new class (MyApplication that inherit from OpeniddictApplication<int>) when we need an instance of OpeniddictApplicationManager<MyApplication>(); till here everything ok.
But when we use dependency injection to get ApplicationManager like scope.ServiceProvider.GetRequiredService<OpenIddictApplicationManager<MyApplication>>();
It fail with error
No service for type ‘OpenIddict.Core.OpenIddictApplicationManager`1[BusinessManagerService.AuthServer.Models.MyApplication]’ has been registered.
Then i try to register in different way the service type required but i have to implement store, logger, etc.
So, exist an easier way to extend OpeniddictApplication?
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (3 by maintainers)
Top GitHub Comments
If you’re like me and ran into this issue in 2023. The way I solved the problem was to use the overload that accepts an object instead of the OpenIddictApplicationDescriptor.