打开 关闭

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 答案
  • 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

    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