org-caldav icon indicating copy to clipboard operation
org-caldav copied to clipboard

can't get it work with .authinfo

Open MarinosK opened this issue 3 years ago • 2 comments

Not sure if that's a bug or a wrong configuration of mine - I never had to do this manually, other programs ask me if I want keep my credentials to authinfo and this is handled automatically. Anyhow:

I have this in my .authinfo

machine nextcloud.MY_SERVER/remote.php/dav/calendars/USERNAME:443 port https login USERNAME password PASSWORD

but org-caldav still asks username and password - doesn't look at this file

Note the .authinfo is the standard used for encyrption and is populated wth similar entires and starred out passwords. So I also tried with a seperate .authinfo.gpg only having the above entry, and added to my auth-sources like this

(setq auth-sources
      '((:source "~/.authinfo" "~/.authinfo.gpg")))

MarinosK avatar Mar 09 '21 10:03 MarinosK

Shouldn't the authinfo file only have the machine name and not the entire url?

machine example.com:443 port https login USERNAME password PASSWORD

pmeckoni avatar Apr 20 '21 15:04 pmeckoni

Yes, I got mine working with org-caldav-url set to https://nextcloud.MY_SERVER/remote.php/dav/calendars/USERNAME and then in .authinfo.gpg / .authinfo I have nextcloud.MY_SERVER:443

It's a little confusing, org-caldav-url has https://, full path remote.php/dav/calendars/USERNAME, and in your .authinfo you only have to specify server and port without any path

lytex avatar Sep 06 '21 17:09 lytex