An authentication / OAuth endpoint is called over cleartext http://.
Why AI tools produce this: AI coding tools produce this regularly, typically when prompted for a shortcut or a quick fix.
Why this matters
Any token, authorization code, or credential exchanged with that endpoint crosses the network unencrypted and is trivially captured on a hostile Wi-Fi or by an on-path attacker (CWE-319). AI-generated samples default to http:// because it "works" against a local test server and the scheme is never upgraded for production hosts.
Use https:// for every auth endpoint: val tokenUrl = "https://accounts.example.com/oauth/token" Cleartext to a local loopback host (localhost / 127.0.0.1 / 10.0.2.2) during development is not flagged.
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.kotlin.android.cleartext-auth-url -- <reason>