Microsoft Identity: Password Hash from Framework 4.8 to .NET 8

Rassbach, Scott 5 Reputation points
2023-12-15T15:21:32.2+00:00

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.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,816 questions
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.