// This software is available under the Apache-2.0 license.
// See https://www.apache.org/licenses/LICENSE-2.0.txt for full text.
//// Copyright (c) 2024, Gluu, Inc.
useserde::{Deserialize, Serialize};/// Configuration to specify authorization workflow.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]pubstructAuthorizationConfig{/// Claim name used for decision logging (e.g. which JWT claim identifies the token).
/// `CEDARLING_DECISION_LOG_DEFAULT_JWT_ID` in bootstrap properties documentation.
pubdecision_log_default_jwt_id: String,
/// Whether to enforce Cedar schema validation.
////// When `true` (default), a schema is required and policies/entities are validated
/// against it. When `false`, Cedarling runs without schema-based validation.
pubstrict_schema_validation:bool,
}implDefault forAuthorizationConfig{fndefault()->Self{Self{
decision_log_default_jwt_id:"jti".to_string(),
strict_schema_validation:true,}}}