Skip to main content

actix_security_core/http/security/
manager.rs

1use crate::http::security::web::{MemoryAuthenticator, RequestMatcherAuthorizer};
2
3pub struct AuthenticationManager {}
4
5impl AuthenticationManager {
6    pub fn in_memory_authentication() -> MemoryAuthenticator {
7        MemoryAuthenticator::new()
8    }
9}
10
11pub struct AuthorizationManager {}
12
13impl AuthorizationManager {
14    pub fn request_matcher() -> RequestMatcherAuthorizer {
15        RequestMatcherAuthorizer::new()
16    }
17}