Nexus API Reference

AuthorizationRequirement

Tags
psalm-api

Marker interface for PHP attributes that declare an authorization requirement on a handler class (e.g. #[RequiresAuth], #[RequiresScope]).

Application compilation fails closed: a route whose handler class carries an attribute implementing this interface MUST have a middleware implementing AuthorizationEnforcer registered on it, otherwise compile() throws instead of serving the route unprotected.

Table of Contents

On this page
  • Table Of Contents

Search results