OAuth tests often prove that the happy path works while leaving the most important trust decision untested: where is the authorization response allowed to go? The test are green, but the boundary is still unclear.
A login can appear successful even when the test suite never checks exact redirect-URI matching, state validation, PKCE handling, or the boundary between a test identity and a real account. That creates a dangerous kind of confidence. The test is green, but it may not catch an allowlist regression or a leaked code.
The fix is a redirect-URI matrix. Treat each OAuth test as a small security experiment with an explicit client, identity, callback, and expected result. The matrix also make review easier when a client configuration changes.
Why redirect URI tests fail to prove much
Many suites have one test client, one callback URL, and one reusable email fixture.…