HTTP Basic Authentication

Hello, I have RUT 241. I’m having trouble authorizing Basic through the API. Token authorization works fine. The curl command looks like this:

curl -X GET “https://192.168.1.1/api/system/device/status” -k -H “Content-Type: application/json” -H “Authorization: Basic YWRtaW46WkFRITJ3c3hjZGUz”

I get the response:

{"success":false,"errors":[{"source":"Authorization","code":121,"error":"Missing bearer token"}]}
Where YWRtaW46WkFRITJ3c3hjZGUz is username:password encoded in Base64. How can I solve this problem?

Greetings,

Since I couldn’t get the basic authorization working myself, I have relayed your issue to our research and development department. Once I get a reply from them, I will get back to you with the answer.

Best Regards,
Justinas

Hi Justinas, Is there any update? THX, Radim

Greetings,

Currently there is no new feedback from our R&D department regarding these issues. I will update you once I get any news.

Best Regards,
Justinas

Greetings,

Could you please confirm whether Basic Authentication is enabled?
You can verify this by navigating to System → Administration → Access Control, then clicking Edit under HTTPS, where the setting will be displayed.

Best Regards,
Justinas

This topic was automatically closed after 60 days. New replies are no longer allowed.