Ends in:
1 DAY
3 HRS
24 MIN
11 SEC
Ends in:
1 D
3 H
24 M
11 S
Open Closed

ABP Entry In [dbo].[AbpUserLogins] When User Created #5694


User avatar
0
Dev2ng created
  • ABP Framework version: v7.2
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

Hi,

I am Syncing users from Azure Active Directory on CRON basis.

What I need is at the time of syncing the users to our table [dbo].[AbpUsers] we need to create the entry in [dbo].[AbpUserLogins] also so that when any user logins first time they are not shown the Register Button i.e. "Account/Register".

But table [dbo].[AbpUserLogins] is having one column named [ProviderKey] which is uniquely generated per user.

Please provide input on how we can create entry in [ProviderKey] column at the time of syncing only.

Thanks !!


2 Answer(s)
  • User Avatar
    0
    Dev2ng created

    Any update on this ?

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hi,

    Provider Key is something we get from below code which is not related to abp io

    await SignInManager.GetExternalLoginInfoAsync();
    

    please read more about this on https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.identity.userlogininfo.providerkey?view=aspnetcore-7.0#microsoft-aspnetcore-identity-userlogininfo-providerkey

Made with ❤️ on ABP v9.1.0-preview. Updated on November 29, 2024, 05:50