Auth storage needs base64-encoded 'user:pass' string, not raw password.
This commit is contained in:
@@ -99,10 +99,10 @@
|
|||||||
(interactive)
|
(interactive)
|
||||||
(require 'org-caldav)
|
(require 'org-caldav)
|
||||||
(let* ((password (my/get-rbw-password "nextcloud-caldav"))
|
(let* ((password (my/get-rbw-password "nextcloud-caldav"))
|
||||||
(auth-entry (list "nextcloud.johnogle.info:443"
|
(auth-string (base64-encode-string (format "johno:%s" password) t)))
|
||||||
(cons "johno" password))))
|
;; Set up URL basic auth cache (format: ((SERVER (PATH . BASE64-AUTH))))
|
||||||
;; Set up URL auth cache
|
(setq url-http-basic-auth-storage
|
||||||
(setq url-http-basic-auth-storage (list auth-entry))
|
`(("nextcloud.johnogle.info:443" ("/" . ,auth-string))))
|
||||||
(org-caldav-sync)))
|
(org-caldav-sync)))
|
||||||
|
|
||||||
(use-package! org-caldav
|
(use-package! org-caldav
|
||||||
|
|||||||
Reference in New Issue
Block a user