Skip to content

fix(client): enforce OAuth scope token grammar - #44

Merged
kauandotnet merged 1 commit into
mainfrom
codex/oauth-scope-token-grammar
Sep 3, 2026
Merged

fix(client): enforce OAuth scope token grammar#44
kauandotnet merged 1 commit into
mainfrom
codex/oauth-scope-token-grammar

Conversation

@kauandotnet

@kauandotnet kauandotnet commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Enforces RFC 6749 ASCII NQCHAR scope-token grammar across OAuth discovery, authority normalization, authorization inputs, DCR responses, and token responses. Valid punctuation such as commas remains supported.\n\nAdds a shared exported bounded validator. Exchange responses inherit the pinned requested scope when scope is omitted. Refresh callers can bind the current effective scope; omission retains it, while explicit widening is rejected in both flows.\n\nRegression coverage includes quote, backslash, non-ASCII, bounds, omission, and widening.\n\nVerification: the full repository verify gate passes. ATTW used an isolated npm cache because the host default cache contains an unrelated permissions error.

@kauandotnet
kauandotnet force-pushed the codex/oauth-scope-token-grammar branch 2 times, most recently from 9223af1 to 255dde8 Compare September 3, 2026 20:39
@kauandotnet
kauandotnet force-pushed the codex/oauth-scope-token-grammar branch from 255dde8 to f546bf3 Compare September 3, 2026 20:42
@kauandotnet
kauandotnet merged commit f463c0d into main Sep 3, 2026
5 checks passed
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