Validation::insecure_disable_signature_validation() turns off JWT signature verification.
Why AI tools produce this: AI coding tools produce this regularly, typically when prompted for a shortcut or a quick fix.
Why this matters
Once disabled, decode accepts any token (including ones forged or tampered with by an attacker) because the cryptographic signature is never checked. For OAuth/OIDC this lets an attacker mint arbitrary access tokens and identities.
Never disable signature validation. Build the validator with the expected algorithm, e.g. Validation::new(Algorithm::HS256) (or the RS/ES algorithm your issuer uses), and verify the token through decode::<Claims>(token, &key, &validation).
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.rust.jwt.disable-signature-validation -- <reason>