kirino 0.7.5

Zero-trust authentication and authorization framework with RBAC and dynamic risk assessment.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[cfg(feature = "auth-jwt")]
pub mod basic;
pub mod one_time;
pub mod service;

use anyhow::Result;

pub trait Credential {
    /// Verifies the given token against the stored credential.
    ///
    /// # Errors
    ///
    /// Returns an error if verification fails due to an internal error.
    fn verify(&self, token: &str) -> Result<bool>;
}