ankurah-jwt-auth 0.9.0

JWT-based PolicyAgent for Ankurah
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use ankurah::Model;
use serde::{Deserialize, Serialize};

/// Policy configuration entity stored in ankurah.
/// The collection name is auto-derived as "jwtpolicy" (struct name lowercased).
#[derive(Model, Debug, Serialize, Deserialize)]
pub struct JwtPolicy {
    /// Serialized PolicyConfig JSON
    #[active_type(LWW)]
    pub config_json: String,

    /// PEM-encoded public key for JWT verification
    #[active_type(LWW)]
    pub public_key_pem: String,
}