Starts in:
1 DAY
6 HRS
48 MIN
31 SEC
Starts in:
1 D
6 H
48 M
31 S
Open Closed

add identity for signed in users #2266


User avatar
0
ahmadkharsah created

Hi, I'd like to add multiple identities for the logged-in users so they can connect their accounts with other 3rd part accounts. for example:

  • user will log in with his identity/tenant
  • logged user will connect their Facebook account to their profile so they can get data from Facebook for instance.
  • the connected identity will be used for the background job. So, how I can achieve this scenario?

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

    hi

    Maybe this will help.

    https://docs.microsoft.com/en-us/aspnet/core/security/authentication/social/?view=aspnetcore-6.0&tabs=visual-studio

  • User Avatar
    0
    ahmadkharsah created

    Thanks, should the UI for callback be implemented somewhere in the solution? I think I need help from ABP side to complete this process.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi https://docs.abp.io/en/commercial/latest/modules/account#social-external-logins

  • User Avatar
    0
    ahmadkharsah created

    The external provider is not a social provider, it's OpenIdConnect.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Hello

    You just need to follow the recommended method of ASPNET Core. ABP will support

    https://github.com/abpframework/abp/blob/e3e1779de6df5d26f01cdc8e99ac9cbcb3d24d3c/modules/cms-kit/host/Volo.CmsKit.Web.Host/CmsKitWebHostModule.cs#L131-L159

  • User Avatar
    1
    ahmadkharsah created

    Thanks, what about adding the identity to each module separately? I mean I want to have a separate identity provider for each module, is this possible in ABP?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    You can configure authentication schemes in different modules, which are then hosted by one or more Hosts.

    https://github.com/abpframework/abp/blob/dev/modules/identity/src/Volo.Abp.Identity.AspNetCore/Volo/Abp/Identity/AspNetCore/AbpIdentityAspNetCoreModule.cs#L35

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