Rest API login #21402
Unanswered
enboer
asked this question in
Need help?
Rest API login
#21402
Replies: 1 comment 1 reply
-
|
You have to specify an additional "-v", since the auth token is transmitted in the response-header, like so:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I run this on my Raspberry pi:
curl -X 'POST' 'http://192.168.xx.xx:7070/api/auth/login' -H 'Content-Type: application/json' -d '{ "password": "xxx" }'
I do not get anything as respons, I expected a token. If I check the login status it returns False. When password is incorrect, it reports that I supplied the wrong password.
I tried https, but that fails with error:
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
Probably my system is not up to date? But if http works that would be ok for me.
Beta Was this translation helpful? Give feedback.
All reactions