The OpenAPI document does not declare the ApiToken authentication scheme, so Swagger UI cannot send an API token #447

Closed
opened 2026-11-14 03:19:20 -05:00 by claude · 0 comments
Owner

Found while the wiki REST API page (#435) was checked against a live run.

The Authorization: ApiToken <token> scheme works at runtime, but securitySchemes in the OpenAPI document (/swagger/v1/swagger.json, snapshot src/angular/openapi/swagger.json) lists only Bearer. Swagger UI's Authorize dialog therefore offers no way to use an API token, and a generated client does not learn the scheme exists.

Wanted

  • Declare the scheme (an apiKey in the Authorization header with the ApiToken prefix described, or whatever form Swagger UI can send correctly) and attach it to the operations that accept it.
  • Regenerate the snapshot and the Angular client; check the generated client's behaviour does not change for the console (it uses Bearer).
  • README API section and the wiki REST API page say how to authorise in Swagger UI with a token.
Found while the wiki REST API page (#435) was checked against a live run. The `Authorization: ApiToken <token>` scheme works at runtime, but `securitySchemes` in the OpenAPI document (`/swagger/v1/swagger.json`, snapshot `src/angular/openapi/swagger.json`) lists only `Bearer`. Swagger UI's Authorize dialog therefore offers no way to use an API token, and a generated client does not learn the scheme exists. **Wanted** - Declare the scheme (an `apiKey` in the `Authorization` header with the `ApiToken ` prefix described, or whatever form Swagger UI can send correctly) and attach it to the operations that accept it. - Regenerate the snapshot and the Angular client; check the generated client's behaviour does not change for the console (it uses Bearer). - README API section and the wiki REST API page say how to authorise in Swagger UI with a token.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil#447
No description provided.