simpleidserver / SimpleIdServer

OpenID, OAuth 2.0, SCIM2.0, UMA2.0, FAPI, CIBA & OPENBANKING Framework for ASP.NET Core
https://simpleidserver.com/
Apache License 2.0
682 stars 90 forks source link

JSON Seeding feature #753

Closed lechediaz closed 4 weeks ago

lechediaz commented 4 weeks ago

Hi,

I've made several updates related to the seeding feature:

  1. I renamed files created in issue #752 to clarify their content and responsibilities.
  2. I moved these files to a folder called "Seeding" within the "SimpleIdServer.IdServer" library.
  3. I enabled the seeding feature in the "SimpleIdServer.IdServer.SqlSugar.Startup" project.
  4. I implemented an IEntitySeeder<UserSeedDto> to seed users in both projects: "SimpleIdServer.IdServer.Store.EF" and "SimpleIdServer.IdServer.Store.SqlSugar". I registered this implementation in the "Program" file of each one.
  5. Finally, I added a call to the seeding feature in the "SeedData" method of the "SimpleIdServer.IdServer.Store.SqlSugar" Program file.

I appreciate any comments or feedback!