Open Closed

Access the login provider of the current user #3879

alin.andersen created


I need get the name of the external login provider the current user is linked to.

I found the table AbpUserLogins:

It contains all the information I need. I will need to check if the user came from a specific login provider and then do some logic.

How can I access this data? Is there a service? I found IIdentityExternalLoginAppService, but it does not have any data.


  • ABP Framework version: v6.0.0
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC)

2 Answer(s)
  • 0
    maliming created
    Support Team


    You can use UserManager<Volo.Abp.Identity.IdentityUser>

  • 0
    alin.andersen created

    Yes thank you! The login provider of the user can be found here: IdentityUser -> Logins -> LoginProvider