Search by

hydrakit / csrf

whleucka

Synchronizer-token CSRF protection as PSR-15 middleware.

Package info

github.com/hydra-foundation/csrf

pkg:composer/hydrakit/csrf

Statistics

Installs: 52

Dependents: 2

Suggesters: 0

Stars: 0

v0.3.2 2026-09-11 16:10 UTC

This package is auto-updated.

Last update: 2026-09-11 16:23:10 UTC


README

Read-only mirror. hydrakit/csrf is developed in hydra-foundation/hydra under packages/csrf, and republished here on every push. A commit pushed to this repository is overwritten by the next one; issues are disabled for that reason, and a pull request opened here cannot be merged. Both belong upstream.

Synchronizer-token CSRF protection: one secret token per session, compared in constant time against whatever an unsafe request submits. State lives entirely in the session, so the guard is stateless and the package ships no ServiceProvider. The guard autowires from the session and Signer bindings.