http rest command help with username

Posted on
Mon Mar 11, 2019 1:16 pm
mpovolo offline
Posts: 51
Joined: Dec 19, 2018

http rest command help with username

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

Posted on
Mon Mar 11, 2019 2:54 pm
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: http rest command help with username

The REST API uses HTTP digest authentication, so whatever is sending the request needs to know how to send HTTP Digest Authenticated requests.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Tue Mar 12, 2019 7:03 am
RogueProeliator offline
User avatar
Posts: 2501
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: http rest command help with username

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

Posted on
Tue Mar 12, 2019 7:40 pm
mpovolo offline
Posts: 51
Joined: Dec 19, 2018

Re: http rest command help with username

an IOT widget on a Garmin watch. I keep getting invalid credentials but the same http command in a browser works fine

Posted on
Wed Mar 13, 2019 8:13 am
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: http rest command help with username

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.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 5 guests