More signinmanager, signin now works and we set the user principal in the correct place on login

This commit is contained in:
Shannon
2020-05-27 18:27:49 +10:00
parent e47f81efdc
commit 1cfc490751
11 changed files with 179 additions and 77 deletions

View File

@@ -400,9 +400,9 @@ namespace Umbraco.Web.BackOffice.Controllers
"externalLogins", new Dictionary<string, object>
{
{
//TODO: I think this should be: _signInManager.GetExternalAuthenticationSchemesAsync() or however that works
"providers", (await _authenticationSchemeProvider.GetAllSchemesAsync())
// Filter only external providers
.Where(x => !x.DisplayName.IsNullOrWhiteSpace())
// TODO: We need to filter only back office enabled schemes.
// Before we used to have a property bag to check, now we don't so need to investigate the easiest/best
// way to do this. We have the type so maybe we check for a marker interface, but maybe there's another way,