You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrating ASP.NET Core apps that use ASP.NET Core Identity for authentication to
Azure AD B2C is difficult:
The app is not setup to use OIDC for authentication
The identity model, views, and controllers are intermingled with the application code
The app data is tied up with the IdentityDbContext
No support for migrating users to Azure AD B2C
No support for securing Web APIs.
Goals
Enable ASP.NET Core apps to easily migrate from using ASP.NET Core Identity in app to Azure AD B2C
Provide a Web API security solution
Approach
We will add a layer to ASP.NET Core Identity that exposes user identities through standard endpoints that have the same behavior as Azure AD B2C. These endpoints implement standard protocols (a subset of OpenID Connect and OAuth 2.0). These endpoints can be used to authenticate users and to issue access tokens for accessing protected resources (secure web APIs). To migrate an app to use Azure AD B2C you reconfigure the app to use Azure AD B2C endpoints instead of the ASP.NET Core Identity endpoints and migrate the corresponding users and application data.
The same endpoints can be used to authorize client access to web APIs. Registered client applications can request access tokens from ASP.NET Core Identity using the Microsoft Authentication Library (MSAL). Access to the web API is authroized for requests that contain valid access tokens with sufficient scope.