mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-03-09 07:13:35 -05:00
API tokens requests returns 401 Unauthorized for user operations /api/v1/user/... #348
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alvarolm on GitHub (Jan 31, 2025).
Description
There is no issue with the jwt token generated on authenthication but the using an API token with all the permissions granted results on 401 responses no matter what for requests to the endpoint /api/v1/user/...
I have tried with the same token for https://try.vikunja.io/api/v1/docs#tag/labels/paths/~1labels/get and works as expected.
token permissions granted:
Currently using:
v0.24.6
Vikunja Version
v0.24.6
Browser and version
No response
Can you reproduce the bug on the Vikunja demo site?
Yes
Screenshots
No response
@alvarolm commented on GitHub (Jan 31, 2025):
it seems there is no implementation for handling these routes:
logs.txt
api_routes.go.diff.txt
@kolaente commented on GitHub (Feb 3, 2025):
That's correct and by design. User routes have to use a user login token and won't work with an api token.