The OpenAPI document declares the ApiToken authentication scheme, and its SSO example and login description are corrected #464
No reviewers
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lantea-one/ninlil!464
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/447-api-document-token-scheme"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #447
Closes #461
The API document declares the
ApiTokenscheme (#447)./swagger/v1/swagger.jsonlistsApiTokenbesideBearer, as anapiKeyin theAuthorizationheader, and offers the two as alternatives. In Swagger UI's Authorize dialog a user types the wordApiToken, a space and the token. The description holds no angle-bracket placeholder, because Swagger UI renders descriptions as Markdown and drops such text; a test guards that.Two texts in the document (#461). The SSO settings examples use the display name "Single Sign-On" (the option's default, and the value the wiki uses) instead of a product name. The login description says a 423 is answered only for an account with lockout enabled and a stored lockout end date in the future, which nothing in the API sets.
Docs. README "REST API" and the wiki page
pages/docs/rest-api.mdexplain both Authorize fields and that only one is filled: with both filled Swagger UI sends the API token field's value.Snapshot and client. Regenerated and committed together, apart from the backend commits. Every generated service method gains a credential lookup for
ApiTokenbeside the one forBearer. The console configures no credentials and sets itsAuthorizationheader in its interceptor, which runs after the generated code, so its requests are unchanged.Checked. A verifier ran the scheme on a private instance (
ApiToken <token>200, the raw token 401, Bearer 200), compared the served document with the snapshot, traced the client, and rejected the first version for the placeholder that Swagger UI dropped; that and its smaller findings are fixed in the last three commits. Build: 0 warnings.Ninlil.Web.Tests: 2358 of 2358 with a built console. Console: lint and format clean, 1721 of 1721 tests. Link check: 0 problems.Follow-ups filed as #463 (XML list tags in two descriptions, per-operation security requirements, a note on the generated client's
ApiTokendefault).🤖 Generated with Claude Code
https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK