abrochard / emacs-habitica

Emacs Extension for Habitica
GNU General Public License v3.0
77 stars 23 forks source link

it still ask for username & password #20

Open longlu opened 4 years ago

longlu commented 4 years ago

i added api and token to config file, but it still ask for password when I press ctrl x t t

funnyflowerpot commented 3 years ago

I think I have the same problem. I can set habitica-uid and habitica-token and habitica-tasks works without flaws. However, when I do C-x t t as OP said, then I get:

error in process filter: Wrong authorization used for https://habitica.com/api/v3/tasks/[REDACTED]/score/up

Amazing idea though and thanks for this implementation!

SysH-north commented 2 years ago

i added api and token to config file, but it still ask for password when I press ctrl x t t

I know that this answer is late ,but if you still encounter the same issue, try to uncomment the two lines for the id and token in your conf file, by deleting ";;"

kamni commented 2 years ago

I can confirm this is still an issue. Steps to reproduce:

;; init.el
(use-package habitica
  :config
  (setq habitica-uuid "<redacted>")
  (setq habitica-token "<redacted>"))

Then I do M-x habitica-tasks and get a list of all my tasks.

I try to complete one of my tasks (C-x t t) and it prompts me for my username and password.

Expected behavior: if I set my uuid and token, I should never be prompted for a username and password.

kamni commented 2 years ago

A little more information: it seems that when I use C-x t t the task does get completed on the Habitica website.

However, I get this prompt, which seems to be executing after the task is completed:

Username [for https://habitica.com/.../score/up]:

There isn't a way to exit it without hitting C-g a couple of times.

I've searched the code, and it doesn't match the login prompt for habitica-login, nor is there the word "Username" (upper case first letter)" in the code. This seems to be coming from url-util from the auth library. Not sure why this is triggering, but hope this information is useful to troubleshoot it!

thomas-louvigne commented 2 years ago

same problem