Open Closed

How do External provider bind existing account? #6865


User avatar
0
464199480 created
  • ABP Framework version: v8.0.4
  • UI Type: Angular
  • Database System: EF Core
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

only register a new user name and cannot bind an existing user name

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

3 Answer(s)
  • User Avatar
    -1
    Anjali_Musmade created
    Support Team Member

    Hello,

    Please checkout similar issue https://support.abp.io/QA/Questions/6843/External-Provider-login-is-able-to-register-a-user-even-if-self-register-setting-is-disabled if it works for you.

    Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    464199480 created

    This did not meet expectations. Maybe my problem is this is a new requirement. If a user login into their current account, they want to be able to provide an entry point to bind to an external provider

    For example, in the system, there is a user@admin.com, which needs to be bound to a microsoft account. not register account

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    -1
    maliming created
    Support Team Fullstack Developer

    hi 464199480

    You can consider using this External provider to sign in and set a new redirect_uri. The default redirect_uri is: https://localhost/signin-xxxx, implement your logic in the new redirect_uri.

    var redirectUrl = redirect_uri
    var properties = new AuthenticationProperties { RedirectUri = redirectUrl };
    return await Task.FromResult(Challenge(properties, "Your_External_Provider.ExternalScheme"));
    

    the handler of new redirect_uri

    var auth = await Context.AuthenticateAsync(Your_External_Provider.ExternalScheme);
    auth.Principal.....
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 28, 2026, 11:44
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.