Page 1 of 2

[HOWTO]: Using HTTP Basic Authentication

PostPosted: Tue Oct 03, 2006 10:45 am
by matt (support)
[MODERATOR NOTE]: HTTP Basic authentication is configurable in the Start Local Server dialog starting in Indigo 2021.1. You should use that rather than the procedure described below.

For Indigo 7.5 or earlier: To enable HTTP basic authentication create a file named IndigoWebServer.conf here:

  /Library/Application Support/Perceptive Automation/Indigo 7 (or 7.2, etc.)/IndigoWebServer/IndigoWebServer.conf

The file should look like this and be saved as an ASCII text file:

Code: Select all
[global]
authen.use_digest = False
authen.use_basic = True


Next, stop and restart the Indigo Server via the Indigo->Stop Server menu item. The user name to enter for HTTP basic authentication (web server) will be as it is specified inside the Start Local Server... dialog -- you must enable authentication in that dialog.

Warning: Using HTTP basic authentication will result in your password being sent over the internet as clear text. Don't use this technique unless you understand what the ramifications of this are. :-)

Regards,
Matt

Re: Using HTTP Basic Authentication (clear text password)

PostPosted: Tue Oct 03, 2006 8:54 pm
by bcmayes
support wrote:
To enable HTTP basic authentication in beta 6 (or higher), create a file named IndigoWebServer.conf ...


Just so I'm clear, I only have to do this to accommodate a browser/device that can't handle the "built-in" authentication schemes (that is, the ones that appear in the "Start Local Server..." dialog). Right?

Byron
(Fully authenticated with Blazer on my Palm Treo 650) 8)

Re: Using HTTP Basic Authentication (clear text password)

PostPosted: Tue Oct 03, 2006 9:15 pm
by matt (support)
Yes, only use the above override file if you have a particular device (browser) that is failing to authenticate using the default HTTP Digest Authentication AND if you don't mind your password being sent in as clear text.

Regards,
Matt

Re: Using HTTP Basic Authentication (clear text password)

PostPosted: Fri Oct 03, 2008 2:39 pm
by matt (support)
Note that because of changes included in the 3.0.6 release the IndigoWebServer.conf file setup has changed a bit. The use_digest option now needs to be set to false, and the password should no longer be entered into the .conf file (the password set in the Start Local Server dialog is used instead).

The original (first) post in this thread has been updated to reflect the new .conf file contents that should be used.

Regards,
Matt

Re: [HOWTO]: Using HTTP Basic Authentication

PostPosted: Mon Sep 08, 2014 6:25 am
by svenseventy
Had this been modified with the 6.014 / paid reflector changes this month? Previously functional basic authentication geofences are now failing.

Thanks

Re: [HOWTO]: Using HTTP Basic Authentication

PostPosted: Mon Sep 08, 2014 8:00 am
by matt (support)
There weren't any changes to Indigo's built-in Web server, so I'm not sure why it isn't working. Did it stop working when you went from 6.0.13 to 6.0.14, or were you previously on an older version (than 6.0.13)?

Re: [HOWTO]: Using HTTP Basic Authentication

PostPosted: Mon Sep 08, 2014 10:48 am
by svenseventy
I don't know the exact version number of the previous version, but I just downloaded/purchased Indigo within the last 6 weeks, so I presume that the previous version was 6.013. Yes, it was working fine (for post/get to change 'ishome' variable) using basic authentication (with the .conf file configuration above) before I both a) changed to 6.014 and b) began to pay for the reflector service. (I did both at the same time.)

Re: [HOWTO]: Using HTTP Basic Authentication

PostPosted: Mon Sep 08, 2014 2:08 pm
by jay (support)
What exactly isn't working? I'm a little confused... ;)

Re: [HOWTO]: Using HTTP Basic Authentication

PostPosted: Mon May 11, 2015 9:33 pm
by HA1
Will this enable basic auth even for reflector service (goprism)?

Re: [HOWTO]: Using HTTP Basic Authentication

PostPosted: Tue May 12, 2015 7:31 am
by matt (support)
Yes.

Re: [HOWTO]: Using HTTP Basic Authentication

PostPosted: Thu Feb 02, 2017 12:01 pm
by craigsheppard
Are both methods supported simultaneously? My remote clients are all successfully using digest (and I'm happy there), however I'm hoping to interact with Indigo via a node.js app on the same machine as the indigo server (where I don't mind the cleartext password).

Thanks!

Craig

Re: [HOWTO]: Using HTTP Basic Authentication

PostPosted: Thu Feb 02, 2017 12:40 pm
by matt (support)
I'm not positive, but I believe so. Give it a try and let us know if there is a problem.

Re: [HOWTO]: Using HTTP Basic Authentication

PostPosted: Thu Feb 02, 2017 1:00 pm
by jay (support)
craigsheppard wrote:
I'm hoping to interact with Indigo via a node.js app


node.js doesn't have an authentication library that supports digest auth? I know it's local, but seems like that would be the better solution since enabling them both makes basic available outside of your local network as well.

[HOWTO]: Using HTTP Basic Authentication

PostPosted: Thu Feb 02, 2017 3:36 pm
by lindehoff
You can use Digest with node js :
Code: Select all
var options = {
  uri: 'http://127.0.0.1:8176/devices/',
  auth: {
    user: 'test',
    pass: 'test',
    sendImmediately: false
  }
};
request(options, function(error, response, body){

})

Re: [HOWTO]: Using HTTP Basic Authentication

PostPosted: Thu Feb 02, 2017 8:30 pm
by craigsheppard
Thanks! 'request' worked for me. I was hoping to not use any external deps, but this will be fine for now. Cheers!