A business-logic check makes an authorization decision directly inside domain or application logic instead of relying on framework authorization infrastructure. This keeps the domain simpler, easier to test, and framework-independent. section 24.5.2
Choose this approach with its tradeoffs in mind:
- Prefer direct domain checks when keeping authorization simple and independent of ASP.NET Core is more important than framework features. section 24.5.2
- Recognize that framework authorization provides declarative policies and easier access to request-related services and properties. section 24.5.2
- Use both approaches when application design calls for framework protection at the endpoint and business rules inside the domain. section 24.5.2
