Search code examples
c#asp.netasp.net-identityclaims-based-identity

Central ASP.NET Identity Solution to all my intranet Apps


I need some help with ASP.NET Identity. All my Intranet Apps uses Windows Authentication. I want to create a unique central ASP.NET Identity Solution to all of them. Inside this solution I want to give for each user custom Roles and Claims that provide authorization for each App in Intranet. I'm passing the User.Identity.Name from the Index of my Apps to this central solution. The issue is that I have no idea how to get the claims and roles from my database and retrieve the information to the App the client is accessing.

If anyone could help...

Thanks!


Solution

  • You should look into Identity Server

    There is a walkthrough for setting up what you're looking for here

    Identity Server 3 docs

    Identity Server 4 docs (.Net Core)