flexibeast / emacs-dokuwiki

Edit remote Dokuwiki pages using XML-RPC
GNU General Public License v3.0
1 stars 1 forks source link

Username required after inactivity period #1

Open bitozoid opened 3 months ago

bitozoid commented 3 months ago

This is my setup:

(setq dokuwiki-xml-rpc-url "http://my.server/foo/bar/lib/exe/xmlrpc.php")
(setq dokuwiki-login-user-name "my-username")
(setq url-proxy-services
      '(("no_proxy" . "^\\(localhost\\|127\\.0\\.0\\.1\\)")
        ("http" . "a.proxy.server:3128")
        ("https" . "a.proxy.server:3128")))

Then I have shortcuts for the following two functions (just the functions are shown, not the full setup of the keys).

(lambda() (interactive) (if (fboundp 'dokuwiki-list-pages-cached) (dokuwiki-list-pages-cached) (dokuwiki-login)))
(lambda() (interactive) (dokuwiki-save-page) (kill-current-buffer))

On first time login, everything works fine. Both shortcuts/functions work as expected.

However, after a period of inactivity (say a couple of hours), when I try to open a new page:

Btw, I have also setup an ~/.authinfo file that seems to be always ignored.

Using last commits:

bitozoid commented 3 months ago

I forgot to mention.

If I try again to dokuwiki-login I get:

Login unsuccessful! Check if your dokuwiki-xml-rpc-url or login credentials are correct!

If I restart Emacs, it works again as expected.