在 Asp.Net 没有身份的核心中授权

Authorize In Asp.Net Core Without Identity

在Asp.net核心3 我的数据库中有两个 admin 和 user 值(用于角色),我想用来授权。我不想使用身份。 请帮助我

如果您不想使用默认值Identity,Microsoft 提供了多种自定义方法。您可以阅读 this article for using Cookie Authentication without Identity or Custom Policy-based.