pub struct AuthServiceConfig {
pub jwt_secret: String,
pub token_expiry_hours: u64,
pub key_rotation: Option<KeyRotationConfig>,
pub jwt_algorithm: Option<JwtAlgorithm>,
pub rsa_private_key_pem: Option<String>,
pub rsa_public_key_pem: Option<String>,
}Expand description
Authentication service configuration
Fields§
§jwt_secret: String§token_expiry_hours: u64§key_rotation: Option<KeyRotationConfig>Optional key rotation configuration. When set, enables JWT key rotation support.
jwt_algorithm: Option<JwtAlgorithm>JWT algorithm to use. Defaults to HS256 if not specified.
rsa_private_key_pem: Option<String>PEM-encoded RSA private key (required for RS256)
rsa_public_key_pem: Option<String>PEM-encoded RSA public key (required for RS256)
Trait Implementations§
Source§impl Clone for AuthServiceConfig
impl Clone for AuthServiceConfig
Source§impl Debug for AuthServiceConfig
impl Debug for AuthServiceConfig
Auto Trait Implementations§
impl Freeze for AuthServiceConfig
impl RefUnwindSafe for AuthServiceConfig
impl Send for AuthServiceConfig
impl Sync for AuthServiceConfig
impl Unpin for AuthServiceConfig
impl UnsafeUnpin for AuthServiceConfig
impl UnwindSafe for AuthServiceConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more