Replies: 4 comments
-
|
Hi @RedGlow, thanks for reporting this . First of all, I assume you double-checked the API key to actually be correct, yes? Let me give you some more details that might help you debug this issue. The After having had a quick look at your nginx config, I suspect the SSOWhat plugin to be the cause of your trouble. I didn't get too much into detail of how it works, but it appears to contingently set the For debugging, you can also try to run manual requests (using cURL or your browser) with the API key included as a query param, e.g. try to |
Beta Was this translation helpful? Give feedback.
-
|
@muety thanks a lot for the input and the investigation on YunoHost's sources, it really helps me narrow down the problem! I've checked the API key with the query parameter option, and it works correctly. So I think it's really a problem of the Authorization header not being copied over towards Wakapi, or being overwritten. I'm also inclined toward looking at SSOWat as the main reason of this problem, although it seems to be correctly configured. I've now asked further information on the YunoHost forum, to see if someone with a better understand of SSOWat and the SSO architecture of YunoHost can help me out (and if not, I guess I'll have to dig in the sources myself ;-D) I'll update this thread when I have further information. |
Beta Was this translation helpful? Give feedback.
-
|
@muety As you can see in the forum link discussion, it was indeed an SSOWat configuration to tweak, I just didn't find the right place where to look. The problem has now been solved. Thanks for the assistance! |
Beta Was this translation helpful? Give feedback.
-
|
Glad to hear you managed to solve this! 🙌 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to host a dockerized version of Wakapi (using sqlite) on a yunohost machine. The problem I'm encountering is that authenticated calls receive a 401 and don't recognize the user.
The current situation is:
E.g., running
wakatime-cli-windows-amd64.exe --today --key <API KEY> --verbose(same thing happens if I don't provide the api key and I let the cli read it from the config file), produces the following logs for wakatime-cli:And using
docker container logs --follow wakapiI see:Yunohost puts an nginx reverse proxy in front of the docker machine; I'm not expert at all with nginx though, so I'll just copy a couple of its config files here. I also don't know how the API key is passed to the APIs: is it a header? a query string parameter? something else?
/etc/nginx/conf.d/wakapi.foxthesystem.space.conf:
/etc/nginx/conf.d/wakapi.foxthesystem.space.d/redirect__3.conf:
Beta Was this translation helpful? Give feedback.
All reactions