sova-csrf 0.1.3

CSRF protection plugin for Sova (session double-submit)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Domain events emitted on the app [`EventBus`](sova_core::EventBus).

use sova_core::Event;

/// Fired before a 403 response for CSRF mismatch or missing token.
#[derive(Debug, Clone)]
pub struct CsrfMismatch {
    pub method: String,
    pub path: String,
}

impl Event for CsrfMismatch {
    fn name(&self) -> &'static str {
        "csrf.mismatch"
    }
}