fix(emacs): correct url-http-basic-auth-storage format
Some checks failed
CI / check (push) Has been cancelled
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user