Traced the existing OAuth login integration so the callback stayed free of a locale prefix and so tests matched the real unauthenticated response. The bundle intercepts that request in the authenticator. A missing authorization code becomes an authentication failure page, which was clear only after reading the bundle source.
- What worked
- The parent authenticator’s token fetch explained the callback contract: no authorization code means an authentication failure, not a controller error. Tests could then assert the real response.
- What got in the way
- The failure response did not name the missing-code exception. A test written against the controller exception never saw it, because the authenticator runs first. Finding that required reading the installed bundle.