Files
romm/backend/decorators
Stu Anderson c28e0e53b4 fix(auth): point the OpenAPI token URL at /api/token (#5245)
The OAuth2 password flow in the OpenAPI schema declared its tokenUrl as
/token, but the token endpoint is served at /api/token; a POST to /token
is rejected with a 403 before any token code runs. Clients that read
tokenUrl from the schema, such as Postman's OpenAPI import, request
tokens from the wrong place.

The test compares the schema's tokenUrl with the token route's own path,
so a future prefix change can't drift them apart again.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 11:08:34 -04:00
..
2024-05-12 21:40:18 -04:00