Page 1 of 1

http rest command help with username

PostPosted: Mon Mar 11, 2019 1:16 pm
by mpovolo
If I turn off Indigo server authentication, my http command for an action runs. Once I enable authentication, it won't work. I am not sure how to write an http command with username and password. I also have the option in this program I am using to enter json parameters.

Right not it looks like this for running the "test" action
http://192.168....:8160//actions/test?_method=execute

any ideas?

thanks

Re: http rest command help with username

PostPosted: Mon Mar 11, 2019 2:54 pm
by jay (support)
The REST API uses HTTP digest authentication, so whatever is sending the request needs to know how to send HTTP Digest Authenticated requests.

Re: http rest command help with username

PostPosted: Tue Mar 12, 2019 7:03 am
by RogueProeliator
I also have the option in this program I am using to enter json parameters.

What application are you trying to execute this from? Perhaps someone else will use it and know or we can offer some suggestions.

Adam

Re: http rest command help with username

PostPosted: Tue Mar 12, 2019 7:40 pm
by mpovolo
an IOT widget on a Garmin watch. I keep getting invalid credentials but the same http command in a browser works fine

Re: http rest command help with username

PostPosted: Wed Mar 13, 2019 8:13 am
by jay (support)
mpovolo wrote:
an IOT widget on a Garmin watch. I keep getting invalid credentials but the same http command in a browser works fine


It works in a browser because the browser has cached the digest authentication credentials so you don't have to enter it every time. The Garmin widget most likely doesn't support HTTP Digest Authentication if it doesn't collect a username/password.

There are workarounds though: I'd recommend reading this forum topic as it likely presents one option for you.