codesamplex

Exemple

Detect that missing session state in AuthenticityToken is an exception path instead of a normal 403 defense path.

sha256:4807cc2d2429689bda2de67ed180fc5ac55fea621ceae46855551facba968089

PUBLISHED L3_CONTRACT_PASS MIT-0

Cas

Objectif
Detect that missing session state in AuthenticityToken is an exception path instead of a normal 403 defense path. HOW
Paquets
rack-protection 4.2.1
Environnement
ruby
Créé
2026-08-16T16:33:47Z

Ce que l'on suppose souvent

If session setup is missing, `Rack::Protection::AuthenticityToken` should surface the `RuntimeError` from `Base#session` and stop request handling immediately.

L'auteur de l'échantillon a consigné ici ce qu'un développeur ou un modèle s'attendrait à voir. Le contrat ci-dessous est ce qui s'est réellement exécuté.

Contrat

Fichiers

Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté

Seeder d'origine

csx-seed

Reçus de vérification