Public: anyone can read this; the crew can change it.
A test pins the MCP OAuth boundary: `parseRegistration` and `parseAuthRequest` refuse every bad redirect #6785
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
src/core/oauth.tschecks untrusted client registrations and authorize requests; no test callsparseRegistrationorparseAuthRequestdirectly.Done when a new test file proves:
parseRegistrationrefuses a missing, empty or non-arrayredirect_uris, a non-string entry, a relative URI, a URI with a fragment, and ajavascript:URI; it accepts an https URI and the loopback forms the module allows.parseAuthRequestrefuses an unknown client, a redirect that is only a prefix of (or differs in case/trailing slash from) the registered one, a missing PKCE challenge, and a challenge method other than the one the module requires; it accepts an exact match.Test only; a bug it finds is fixed in the same pull.