From a05a45bb64e32a4556e6290e9dec86c745b3b1be Mon Sep 17 00:00:00 2001 From: Scott Brady Date: Tue, 25 Feb 2020 18:21:07 +0000 Subject: [PATCH] Added identity stores. TODOs --- src/Umbraco.Web/OwinExtensions.cs | 3 ++- src/Umbraco.Web/Security/BackOfficeSignInManager.cs | 13 +++++++++++++ src/Umbraco.Web/Umbraco.Web.csproj | 1 + 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web/OwinExtensions.cs b/src/Umbraco.Web/OwinExtensions.cs index 685868a76b..204df8935e 100644 --- a/src/Umbraco.Web/OwinExtensions.cs +++ b/src/Umbraco.Web/OwinExtensions.cs @@ -83,6 +83,7 @@ namespace Umbraco.Web return marker.GetManager(owinContext) ?? throw new NullReferenceException($"Could not resolve an instance of {typeof (BackOfficeUserManager)} from the {typeof (IOwinContext)}."); } - } + // TODO: SB: OWIN DI + } } diff --git a/src/Umbraco.Web/Security/BackOfficeSignInManager.cs b/src/Umbraco.Web/Security/BackOfficeSignInManager.cs index fe5b061d15..2506613276 100644 --- a/src/Umbraco.Web/Security/BackOfficeSignInManager.cs +++ b/src/Umbraco.Web/Security/BackOfficeSignInManager.cs @@ -16,6 +16,19 @@ using Constants = Umbraco.Core.Constants; namespace Umbraco.Web.Security { + // TODO: SB: Create new custom BackOfficeSignInManager2 (rename pending) + public class BackOfficeSignInManager2 + { + // Create + // CreateUserIdentityAsync + // PasswordSignInAsync + // SignInAsync + // GetVerifiedUserIdAsync + // GetVerifiedUserNameAsync + // TwoFactorSignInAsync + // SendTwoFactorCodeAsync + } + // TODO: In v8 we need to change this to use an int? nullable TKey instead, see notes against overridden TwoFactorSignInAsync public class BackOfficeSignInManager : SignInManager { diff --git a/src/Umbraco.Web/Umbraco.Web.csproj b/src/Umbraco.Web/Umbraco.Web.csproj index 5c75c25c77..d127783ef2 100755 --- a/src/Umbraco.Web/Umbraco.Web.csproj +++ b/src/Umbraco.Web/Umbraco.Web.csproj @@ -82,6 +82,7 @@ +