i have the MVC5 web app without authentication
can i create a separated .net core project solely for authentication and hook up to my MVC5 web app?
have searched a lot for solution but most also target to within .net core
i have the MVC5 web app without authentication
can i create a separated .net core project solely for authentication and hook up to my MVC5 web app?
have searched a lot for solution but most also target to within .net core
can i create a separated .net core project solely for authentication and hook up to my MVC5 web app?
Yes, you can do it. You could create a .Net core application, where you can implement a .Net core Identity, this application will become the central identity API, you could send the user information (UserName and Password) to this API, then, after validation, generate the JWT token, which contains the user identity. Then, in your MVC 5 application, you could configure the authentication and authorization based on the token.
Here are some related articles, you could refer them:
JWT Authentication In ASP.NET Core
ASP.NET Core Web API - Creating And Validating JWT (JSON Web Token)
JWT Bearer Token Authentication & Authorization Front-End in ASP.NET MVC