我所有 Intranet 应用程序的中央 ASP.NET 身份解决方案

Central ASP.NET Identity Solution to all my intranet Apps

我在 ASP.NET 身份方面需要一些帮助。 我所有的 Intranet 应用程序都使用 Windows 身份验证。我想为所有人创建一个独特的中央 ASP.NET 身份解决方案。在这个解决方案中,我想为每个用户提供自定义角色和声明,为 Intranet 中的每个应用程序提供授权。 我正在将 User.Identity.Name 从我的应用程序索引传递到这个中央解决方案。 问题是我不知道如何从我的数据库中获取声明和角色并将信息检索到客户端正在访问的应用程序。

如果有人能帮忙...

谢谢!

你应该看看 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)