Open Closed

Steps to map information from Claims of external Oauth (OpenId ) provider to Extra properties in Identity User #4999


User avatar
0

ABP Framework version:** v6.0.0

  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular):  yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:" Steps to map information from Claims of external Oauth (OpenId ) provider to Extra properties in Identity User

3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    What's your external Oauth (OpenId ) provider ?

    Generally you need to override the OnGetExternalLoginCallbackAsync of LoginModel

  • User Avatar
    0

    it's Azure B2C

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please download the source code of the account module to refer to.

    Override the OnGetExternalLoginCallbackAsyncof LoginModel

    You can update externalUser at

    await SignInManager.SignInAsync(externalUser, false);
    

    The azure b2c user info exists on loginInfo

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 13, 2025, 04:08