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

Made with ❤️ on ABP v9.1.0-preview. Updated on December 05, 2024, 12:19