fix(emacs): correct url-http-basic-auth-storage format
Some checks failed
CI / check (push) Has been cancelled

Auth storage needs base64-encoded 'user:pass' string, not raw password.
This commit is contained in:
hermione
2026-01-24 17:47:28 -08:00
committed by John Ogle
parent 8b8453a37a
commit 4853a18474

View File

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