Search code examples
c#asp.net-mvcasp.net-identity

Central login Site for multiple ASP .Net Web Applications


I'm building several App's or Modules (Each got its own Project or might be a solution) and I need to develop a central core module that acts as a configuration App as well as the main login portal and users management (Using the built-in Identity 2.0)

I need a hint or a road map on how I can allow that functionality so when a user requests a specific module (Might be on a completely another URL, Database or Machine), he'll be redirected to the login page and then return back to the requested url. Of course I need to not include the same login mechanics and controllers in each and every project.

PS: I still need to use the normal Identity User Role check in the Applications/Modules like usual.


Solution

  • I decided to go with IdentityServer4

    There is a learning curve here but I decided to go ahead as it will be a better solution in the future.