How do I initially setup roles and users (like a site admin) with ASP.NET MVC Core? [closed]
- 阅读更多 关于 How do I initially setup roles and users (like a site admin) with ASP.NET MVC Core? [closed]
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . While there seems to be a lot of documentation about verifying roles, claims, etc with ASP.NET Core, there is little information about initially setting these things up in my app. 回答1: The best way to configure roles, claims, etc, is in your app startup. The new ASP.NET Core