1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! Authentication module
//!
//! Provides OAuth 2.0 and API Key authentication support.
//!
//! # Authentication Methods
//!
//! - **OAuth 2.0**: Full OAuth flow with GitHub, Google, Keycloak support
//! - **API Key**: Simple API key authentication with secure hashing
//!
//! # Example
//!
//! ```rust,no_run
//! use crates_docs::server::auth::{ApiKeyConfig, AuthConfig};
//!
//! // Create API Key configuration
//! let api_key_config = ApiKeyConfig {
//! enabled: true,
//! keys: vec!["sk_live_xxx".to_string()],
//! header_name: "X-API-Key".to_string(),
//! ..Default::default()
//! };
//! ```
pub use ApiKeyConfig;
pub use ;
pub use AuthManager;
pub use ;
pub use GeneratedApiKey;
pub use ;