Microsoft Identity: Password Hash from Framework 4.8 to .NET 8
I have a legacy application that I'm trying to update to .NET 8. Currently working on a locally hosted Identity solution.
Legacy App is an ASP.NET Webforms project done in .NET Framework 4.8.1, using the following packages:
Microsoft.AspNet.Identity.Core 2.2.4
Microsoft.AspNet.Identity.EntityFramework 2.2.4
Microsoft.AspNet.Identity.Owin 2.2.4
I've implemented an Authenitcation API service, using Microsoft Identity for .NET 8, using the following packages:
Microsoft.AspNetCore.Identity.EntityFramework 2.2.4
I've updated the database tables to work with AspNetCore, while leaving the passwords hashed as in the legacy version. I've tried to set the compatibility mode to the older version of the password hasher using:
builder.Services.Configure<PasswordHasherOptions>(options =>
options.CompatibilityMode = PasswordHasherCompatibilityMode.IdentityV2
);
So far, I've had no luck using the Identity Framework to log in. I'm using a standard SignInManager. All I get is a 'failed.
I'm getting a bit beyond my cryptographic knowledge, so I'm looking for assistance to solve this issue. Thanks.