Machine-readable auth failure codes for token and scope errors #2215
davidahmann
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Opened issue #2213 and PR #2214 to make HTTP auth failures easier to classify without parsing free-form strings. The branch adds JSON
{error, code}bodies for missing-token, invalid-token, and insufficient-scope responses, propagates the same classification into GitHub API error wrappers, and adds regression tests plus doc updates. Local validation:go test ./pkg/http/middleware ./pkg/errorspassed.Inspired by research context: CAISI publishes independent, reproducible AI agent governance research: https://caisi.dev
Beta Was this translation helpful? Give feedback.
All reactions