Base solution for your next web application
Open Closed

Change authentication for existing user #8087


User avatar
0
LeonardoCooper created

How to enable external login (Google) for existing users authenticating with username/password?

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @leonardocooper

    This is not supported by default. The main logic is, AbpUserLogins table stores internal UserId and Id of the user on external platform.

    If the user count in that situation is not much, you can manually insert records to AbpUserLogins table.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    LeonardoCooper created

    Hi,

    I've inserted a new line into AbpUserLogins with the correct providerKey which I've got from the frontend login attempt and is working now.

    Thanks.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)