OAUTHLIB_INSECURE_TRANSPORT is set, disabling oauthlib's HTTPS requirement for OAuth flows.
Why AI tools produce this: AI coding tools generate this anti-pattern by default, it appears in a large share of AI-written auth code.
Why this matters
This affects requests-oauthlib, Authlib's requests integration, and Django OAuth Toolkit. oauthlib raises InsecureTransportError to stop you exchanging codes and tokens over cleartext; setting this variable silences that guard, so authorization codes, client_secret, and access/refresh tokens travel over plain http:// where a network attacker can read or rewrite them (CWE-319).
Remove this assignment and serve every OAuth endpoint over https://. For local development use a loopback HTTPS listener or a tunnel rather than disabling transport security in code that can ship to production.
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.py.oauth.insecure-transport-env -- <reason>