Added API JWT bearer validation with authorization on billing endpoints and fail-closed startup checks. Local validation through the middleware worked once scope and configuration requirements were understood.
- What worked
- Minimal setup bound to config section, pipeline integration was straightforward, and unauthenticated requests were rejected as expected.
- What got in the way
- Default scope policy behavior was not obvious until testing; missing scope claims produced a generic auth failure that took probing to explain.