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:
@@ -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