robinvanderknaap / authorization-server-openiddict

Authorization Server implemented with OpenIddict.
MIT License
140 stars 51 forks source link

For what reason you was made DB filling as a service? #2

Closed a-a-k closed 2 years ago

a-a-k commented 2 years ago

I can't figure that out, why didn't you fill DB in Startup.cs directly while configuring other stuff? Why IHostedService?

robinvanderknaap commented 2 years ago

At the time It seemed like an easy way to configure the clients. I think I saw the author of OpenIddict do it like this in one of his examples. How would you approach this? Do you have an example?

a-a-k commented 2 years ago

Actually, I have no example for OpenIddict, but there are a lot of samples for a regular DB filling. I may suppose how it might look like but I don't know what entities I need to initiate with data, that's it.