Ends in:
7 DAYS
14 HRS
36 MIN
45 SEC
Ends in:
7 D
14 H
36 M
45 S
Open Closed

Extending/Customizing IdentityUser #6738


User avatar
0
hitaspdotnet created
  • ABP Framework version: 8.1
  • UI Type: MVC
  • Database System: MongoDB
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/ ABP Studio Microservice Template

Hi dear support team. I want to extend IdentityUser using modules source code and add ability to register via socialNetwork ID and the socialNetwork auth token. They should be able to login outside of the social network and manage their data on the web client. Also, I want to use the social network username as their IdentityUser.Username to use it as user finder. I think module extending system can't help us because we also need to add extra claims and custom grant type for openiddict based on these data.

IdentityUser.Username: SocialUserName //string // static // changeable via social_auth_token (if they change their username) IdentityUser.SocialUserId: SocialUserID //long // static IdentityUser.IsBot: SocialUserIsBot // bool IdentityUser.IsPremium: SocialUserIsPremium // bool

please I request you, guide me, what should I pay attention to when I added these new properties to the IdentityUser and if there is an article about doing these things step by step, please share with me. Thank you.

P.S: My project's module references (free & pro) are locally but framework is nuget package reference.


1 Answer(s)
  • User Avatar
    0
    hitaspdotnet created

    Based on docs, thanks to design I'm going with extra modules for this for best practice, and we keep the modules upgradable. we'll try to replace related services.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06