-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Description
I'm trying to create a custom SignInManager
in a class library, where I'm overriding the CheckPasswordSignInAsync
method to use LDAP password check rather than using the database (however, otherwise user information and claims are stored in the database by default).
In .NET Core 2.2, this was a trivial task: all I needed to do was add Microsoft.AspNetCore.Identity 2.2.0
to the library and derive from SignInManager
.
Unfortunately, it looks like the SignInManager
class has been moved to Microsoft.AspNetCore.App.Ref
library. Because it is classified as a DotNetPlatform package type, I cannot bring it into a netstandard2.0 or netcoreapp3.0 class library. The only way to get the SignInManager
to show up correctly is by changing the .csproj
file to target Sdk="Microsoft.NET.Sdk.Web"
. Except, now I'm no longer creating a class library, I'm creating a new .NET Core 3.0 project, which is not what I want (nor will it compile without having a Startup.cs
file).
SignInManager
and UserManager
should be accessible in a class library so that they can be inherited from for use in multiple projects.