Closed ViViDboarder closed 4 years ago
Login as form data to get Bearer token: https://github.com/wekan/wekan/wiki/REST-API#example-call---as-form-data
That's the same thing that -F
does. I get the exact same results doing using the example there
curl -X POST -d "username=admin&assword=password" http://localhost/users/login
# Output:
# {
# "error": 400,
# "reason": "Match failed"
# }
I do get Bearer token just fine:
docker-compose up -d
curl http://localhost/users/login -d "username=username&password=password"
{"id":"Bjji12345","token":"pcG2pqaAh7ldLlZR12345","tokenExpires":"2020-03-10T23:36:27.210Z"}
Well... That's embarrassing... In my second example there, it actually does work, but I had a typo... The parameter should be password
, not assword
. 😉
I'm not sure why the first version didn't work, but I'm switching to using the JSON request instead.
Any idea why logs aren't showing? Though it's now working using the same docker-compose, it's not working on my production server and there are no logs to debug.
Issue
I am unable to login to Wekan using the login API. In addition, I am not seeing any logs despite having
DEBUG=true
set.I'm using the
docker-compose.yml
file found here. Only change I've done is uncomment the line forDEBUG
.Server Setup Information:
Problem description:
sudo snap logs wekan.wekan
? Please anonymize logs.sudo docker logs wekan-app
? Please anonymize logs.