HIGH AI PREVALENCE: MEDIUM auth.oauth.wildcard-redirect
OAuth redirect_uri allow-list contains a wildcard, an http:// URL, or localhost.
Why AI tools produce this: AI coding tools produce this regularly, typically when prompted for a shortcut or a quick fix.
Why this matters
Wildcards (and HTTP) let an attacker register their own callback URL and harvest authorization codes; localhost whitelisting is acceptable for dev tooling but disastrous in production.
Pin redirect URIs to exact, HTTPS URLs of subdomains you control. RFC 6749 §10.6 explicitly requires "exact match" or restricted matching.
VULNERABLE
SAFE
Suppressing this rule
If a finding is a genuine false positive, scope the suppression to the exact line and leave a reason, never disable the rule project-wide. Disable directives are line-scoped by design.
// oauthlint-disable-next-line auth.oauth.wildcard-redirect -- <reason>