- 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)
-
-1
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
-
0
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
-
-1
hi 464199480
You can consider using this
External provider
to sign in and set a newredirect_uri
. The defaultredirect_uri
is:https://localhost/signin-xxxx
, implement your logic in the newredirect_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.....