Nexus API Reference

AuthorizationEnforcer

Tags
psalm-api

Marker interface for PSR-15 middleware that enforces the authorization requirements declared via AuthorizationRequirement attributes (e.g. nexus-http-auth's AuthorizationMiddleware).

Compilation uses this marker to verify that every route whose handler declares a requirement actually has an enforcer in its pipeline. Custom authorization middleware should implement it to satisfy the compile-time fail-closed check.

Table of Contents

On this page
  • Table Of Contents

Search results