Nexus API Reference

AuthorizationMisconfiguredException extends AuthException
in package

FinalYes
Tags
psalm-api

Thrown when AuthorizationMiddleware runs before the router has resolved the target handler — i.e. it was registered globally instead of per-route. This is a fail-closed guard: without the resolved handler class the middleware cannot evaluate #[RequiresAuth]/#[RequiresScope]/#[RequiresRole]/#[Authorize], so rather than silently letting the request through it aborts with a 500 and a diagnostic hint. Bubbles to 500 at request time.

Table of Contents

Methods

ranBeforeRouter()  : self

Methods

On this page

Search results