Search code examples
asp.netasp.net-coreauthorizationrolesasp.net-authorization

Authorize In Asp.Net Core Without Identity


In Asp.net Core 3 I have two admin and user values ​​in my database (for roles) that I want to use to authorize. I don't want to use Identity. Please help me


Solution

  • If you don't want to use default Identity, Microsoft has provided many ways to custom this. You can read in this article for using Cookie Authentication without Identity or Custom Policy-based.