From 4853a18474415ceb9e2a46d296a788468dff42a4 Mon Sep 17 00:00:00 2001 From: hermione Date: Sat, 24 Jan 2026 17:47:28 -0800 Subject: [PATCH] fix(emacs): correct url-http-basic-auth-storage format Auth storage needs base64-encoded 'user:pass' string, not raw password. --- home/roles/emacs/doom/config.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/home/roles/emacs/doom/config.el b/home/roles/emacs/doom/config.el index f5a23b0..e132a44 100644 --- a/home/roles/emacs/doom/config.el +++ b/home/roles/emacs/doom/config.el @@ -99,10 +99,10 @@ (interactive) (require 'org-caldav) (let* ((password (my/get-rbw-password "nextcloud-caldav")) - (auth-entry (list "nextcloud.johnogle.info:443" - (cons "johno" password)))) - ;; Set up URL auth cache - (setq url-http-basic-auth-storage (list auth-entry)) + (auth-string (base64-encode-string (format "johno:%s" password) t))) + ;; Set up URL basic auth cache (format: ((SERVER (PATH . BASE64-AUTH)))) + (setq url-http-basic-auth-storage + `(("nextcloud.johnogle.info:443" ("/" . ,auth-string)))) (org-caldav-sync))) (use-package! org-caldav