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)
-
0
hi
Maybe this will help.
https://docs.microsoft.com/en-us/aspnet/core/security/authentication/social/?view=aspnetcore-6.0&tabs=visual-studio
-
0
Thanks, should the UI for callback be implemented somewhere in the solution? I think I need help from ABP side to complete this process.
-
0
hi https://docs.abp.io/en/commercial/latest/modules/account#social-external-logins
-
0
The external provider is not a social provider, it's OpenIdConnect.
-
0
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
-
1
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?
-
0
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