OrchardCore.Users
- a service to decide which kind of parameter use to link external login to existing account in the second check
#16026
Labels
Milestone
Discussed in #16023
Each module that add an extenal login provider (like GitHub or OpenID) can specify the value of
ClaimTypes.NameIdentifier
to link the external login information to an existing OrchardCore account.But in this line of code, OrchardCore force another check over external login data that could redirect a user to a view that ask about link external login data to an existing account by checking the email value returned by the login provider.
OrchardCore/src/OrchardCore.Modules/OrchardCore.Users/Controllers/AccountController.cs
Lines 387 to 415 in 649b740
I would like each module that add an external login can manage this behavior by a dedicated service. If a module doesn't implement this service: the actual behavior is applied.
Probably could be useful to have a settings to disable this code.
I'm not sure if this "second check" over external login data is correct or it's nature: seems a second chance to connect external login data to user account.
The text was updated successfully, but these errors were encountered: