Starts in:
2 DAYS
9 HRS
37 MIN
50 SEC
Starts in:
2 D
9 H
37 M
50 S
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


3 Answer(s)
  • User Avatar
    -1
    Anjali_Musmade created
    Support Team 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

  • 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

  • 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.....
    
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06