Hi @Prateek Rathore ,
Yes, you can use OWIN in B2C. We have the new Microsoft.Identity.Web v2.0-preview integration guide that goes over some of the considerations on the B2C side. https://github.com/AzureAD/microsoft-identity-web/wiki/v2.0#owin
We also have the guide, B2C with OpenID Connect.
I believe the issue with your implementation is that the data in dbo.AspNetUser needs to be migrated to the tables used by the new ASP.NET Core 2.0 Identity schema, as discussed here. https://learn.microsoft.com/en-us/aspnet/core/migration/proper-to-2x/membership-to-core-identity?view=aspnetcore-6.0
See related posts:
Migrate an OWIN-based web API to b2clogin.com or a custom domain
B2C login for end users
B2C SSO with OWIN
How to integrate an older ASP.NET site with Azure AD B2C?
Let me know if this helps and if you have further questions! I've added the dotnet tag to this thread too since that team supports OWIN issues.
-
If the information helped you, please accept the answer. This will help us and other community members as well.