mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
completely rebuilt the auth implementation to support OIDC in the future
This commit is contained in:
@@ -17,7 +17,6 @@ quick-xml = { version = "0.36", features = [
|
||||
roxmltree = "0.20"
|
||||
rustical_store = { path = "../store/" }
|
||||
rustical_dav = { path = "../dav/" }
|
||||
rustical_auth = { path = "../auth/" }
|
||||
serde = { version = "1.0", features = ["serde_derive", "derive"] }
|
||||
serde_json = "1.0"
|
||||
tokio = { version = "1.40", features = ["sync", "full"] }
|
||||
|
||||
@@ -1,17 +1,10 @@
|
||||
use actix_web::{web, HttpResponse, Responder};
|
||||
use rustical_auth::CheckAuthentication;
|
||||
use std::sync::Arc;
|
||||
|
||||
pub fn configure_well_known(cfg: &mut web::ServiceConfig, carddav_root: String) {
|
||||
cfg.service(web::redirect("/carddav", carddav_root).permanent());
|
||||
}
|
||||
|
||||
pub fn configure_dav<A: CheckAuthentication>(
|
||||
_cfg: &mut web::ServiceConfig,
|
||||
_prefix: String,
|
||||
_auth: Arc<A>,
|
||||
) {
|
||||
}
|
||||
pub fn configure_dav(_cfg: &mut web::ServiceConfig, _prefix: String) {}
|
||||
|
||||
pub async fn options_handler() -> impl Responder {
|
||||
HttpResponse::Ok()
|
||||
|
||||
Reference in New Issue
Block a user