Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question. How to extend user role and user details. #118

Closed
gwinnem opened this issue Nov 11, 2018 · 3 comments
Closed

Question. How to extend user role and user details. #118

gwinnem opened this issue Nov 11, 2018 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@gwinnem
Copy link

gwinnem commented Nov 11, 2018

I am working on extending the user and role details is there an easy way of doing this ?
I thought it was enough to update the role and user details in the classes and then extend the repository update functions.
But i was not able to do that.
Btw I have extended all the views and Dto's so it is only the Create and Update functions im not able to change.

@skoruba
Copy link
Owner

skoruba commented Nov 12, 2018

Hi @gwinnem
Have you tried to use project via template or clone? :)
You can try to create your own implementation of UserIdentity and UserDto and these objects pass into generic repositories/services - BTW - you should start with AddAdminAspNetIdentityServices in Startup class and IdentityController as well.
Thanks!

@skoruba skoruba self-assigned this Nov 12, 2018
@skoruba skoruba added the question Further information is requested label Nov 12, 2018
@gwinnem
Copy link
Author

gwinnem commented Nov 12, 2018

Hi @skoruba
I suppose it is enough to replace all the Identity and Identity role references with a AppUser inheriting from the IdentityUser and a AppRole inheriting from the IdentityRole. Will try that later today and let you know if it worked.

@skoruba skoruba mentioned this issue Apr 4, 2019
@skoruba
Copy link
Owner

skoruba commented Apr 4, 2019

Done on master. Please check new release.
Thanks!

@skoruba skoruba closed this as completed Apr 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants