Skip to content

docs(middleware): correct KeyAuth error handling contract - #3209

Open
anqorithm wants to merge 1 commit into
labstack:masterfrom
anqorithm:anqorithm/docs-keyauth-errors
Open

anqorithm wants to merge 1 commit into
labstack:masterfrom
anqorithm:anqorithm/docs-keyauth-errors

Conversation

@anqorithm

Copy link
Copy Markdown

KeyAuth's API documentation says a missing key produces 400, while ErrKeyMissing and the existing missing-header/query/form/cookie tests all use 401. Correct both constructor comments and clarify that an error handler returning nil continues the chain only when ContinueOnIgnoredError is enabled.

Documentation only; no runtime changes. The existing suite passes with the race detector, and build, go vet, staticcheck, golint and diff checks pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant