فتح مغلق

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


User avatar
0
hardeep.singh@condoauthorityontario.ca خلقت

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 إجابة (إجابات)
  • User Avatar
    0
    maliming خلقت
    فريق الدعم Fullstack Developer

    hi

    What's your external Oauth (OpenId ) provider ?

    Generally you need to override the OnGetExternalLoginCallbackAsync of LoginModel

  • User Avatar
    0
    hardeep.singh@condoauthorityontario.ca خلقت

    it's Azure B2C

  • User Avatar
    0
    maliming خلقت
    فريق الدعم 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 v8.2.0-preview Updated on مارس 25, 2024, 15:11