actix-security-core 0.2.3

Spring Security-like authentication and authorization for Actix Web - Core library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::http::security::web::{MemoryAuthenticator, RequestMatcherAuthorizer};

pub struct AuthenticationManager {}

impl AuthenticationManager {
    pub fn in_memory_authentication() -> MemoryAuthenticator {
        MemoryAuthenticator::new()
    }
}

pub struct AuthorizationManager {}

impl AuthorizationManager {
    pub fn request_matcher() -> RequestMatcherAuthorizer {
        RequestMatcherAuthorizer::new()
    }
}