Added identity stores. TODOs

This commit is contained in:
Scott Brady
2020-02-25 18:21:07 +00:00
parent 38ea741d78
commit a05a45bb64
3 changed files with 16 additions and 1 deletions

View File

@@ -83,6 +83,7 @@ namespace Umbraco.Web
return marker.GetManager(owinContext)
?? throw new NullReferenceException($"Could not resolve an instance of {typeof (BackOfficeUserManager<BackOfficeIdentityUser>)} from the {typeof (IOwinContext)}.");
}
}
// TODO: SB: OWIN DI
}
}

View File

@@ -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<BackOfficeIdentityUser, int>
{

View File

@@ -82,6 +82,7 @@
<PackageReference Include="Microsoft.AspNet.WebApi" Version="5.2.7" />
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.7" />
<PackageReference Include="Microsoft.Extensions.Identity.Core" Version="3.1.2" />
<PackageReference Include="Microsoft.Extensions.Identity.Stores" Version="3.1.2" />
<PackageReference Include="Microsoft.Owin.Host.SystemWeb" Version="4.0.1" />
<PackageReference Include="Microsoft.Owin.Security.Cookies" Version="4.0.1" />
<PackageReference Include="Microsoft.Owin.Security.OAuth" Version="4.0.1" />