jhipster-dotnetcore icon indicating copy to clipboard operation
jhipster-dotnetcore copied to clipboard

IdentityStartup Refactoring

Open maznag opened this issue 4 years ago • 5 comments

Load users and roles seed data from csv or json file instead of hard-coding the data. See IdentityStartup.cs

maznag avatar Jan 05 '21 22:01 maznag

the class is here https://github.com/jhipster/jhipster-dotnetcore/blob/main/generators/server/templates/dotnetcore/src/Project/Configuration/IdentityStartup.cs.ejs

nicolas63 avatar Sep 26 '22 20:09 nicolas63

@nicolas63 where are we planning to store the csv or json file in code? I have made the code changes to read from a csv file instead of hardcoding the data in code.

A-5ingh avatar Oct 02 '22 03:10 A-5ingh

Yes we can generate this file to replace our harded code

nicolas63 avatar Oct 02 '22 07:10 nicolas63

For generating we will have to again use the hardcoded values of user. I was thinking of keeping the csv file manually with all the user data and then just read it from there. You can also assign this to me.

A-5ingh avatar Oct 03 '22 00:10 A-5ingh

@nicolas63 Please provide your review on the #1184 whenever you get time.

A-5ingh avatar Oct 09 '22 02:10 A-5ingh