[HOWTO]: Using HTTP Basic Authentication

Posted on
Tue Oct 03, 2006 10:45 am
matt (support) offline
Site Admin
User avatar
Posts: 18604
Joined: Jan 27, 2003
Location: Texas

[HOWTO]: Using HTTP Basic Authentication

To enable HTTP basic authentication create a file named IndigoWebServer.conf here:

  /Library/Application Support/Perceptive Automation/Indigo 7/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
Last edited by matt (support) on Fri Oct 03, 2008 2:37 pm, edited 1 time in total.

Posted on
Tue Oct 03, 2006 8:54 pm
bcmayes offline
Posts: 119
Joined: Apr 02, 2006
Location: Philadelphia, PA

Re: Using HTTP Basic Authentication (clear text password)

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)

Mac mini 1.25, 1024MB RAM; Indigo 2.0

Posted on
Tue Oct 03, 2006 9:15 pm
matt (support) offline
Site Admin
User avatar
Posts: 18604
Joined: Jan 27, 2003
Location: Texas

Re: Using HTTP Basic Authentication (clear text password)

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

Posted on
Fri Oct 03, 2008 2:39 pm
matt (support) offline
Site Admin
User avatar
Posts: 18604
Joined: Jan 27, 2003
Location: Texas

Re: Using HTTP Basic Authentication (clear text password)

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

Posted on
Mon Sep 08, 2014 6:25 am
svenseventy offline
Posts: 7
Joined: Jul 07, 2014

Re: [HOWTO]: Using HTTP Basic Authentication

Had this been modified with the 6.014 / paid reflector changes this month? Previously functional basic authentication geofences are now failing.

Thanks

Posted on
Mon Sep 08, 2014 8:00 am
matt (support) offline
Site Admin
User avatar
Posts: 18604
Joined: Jan 27, 2003
Location: Texas

Re: [HOWTO]: Using HTTP Basic Authentication

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)?

Image

Posted on
Mon Sep 08, 2014 10:48 am
svenseventy offline
Posts: 7
Joined: Jul 07, 2014

Re: [HOWTO]: Using HTTP Basic Authentication

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.)

Posted on
Mon Sep 08, 2014 2:08 pm
jay (support) offline
Site Admin
User avatar
Posts: 14645
Joined: Mar 19, 2008
Location: Austin, Texas

Re: [HOWTO]: Using HTTP Basic Authentication

What exactly isn't working? I'm a little confused... ;)

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon May 11, 2015 9:33 pm
HA1 offline
Posts: 71
Joined: Mar 15, 2012

Re: [HOWTO]: Using HTTP Basic Authentication

Will this enable basic auth even for reflector service (goprism)?

Posted on
Tue May 12, 2015 7:31 am
matt (support) offline
Site Admin
User avatar
Posts: 18604
Joined: Jan 27, 2003
Location: Texas

Re: [HOWTO]: Using HTTP Basic Authentication

Yes.

Image

Posted on
Thu Feb 02, 2017 12:01 pm
craigsheppard offline
Posts: 7
Joined: May 27, 2008

Re: [HOWTO]: Using HTTP Basic Authentication

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

Posted on
Thu Feb 02, 2017 12:40 pm
matt (support) offline
Site Admin
User avatar
Posts: 18604
Joined: Jan 27, 2003
Location: Texas

Re: [HOWTO]: Using HTTP Basic Authentication

I'm not positive, but I believe so. Give it a try and let us know if there is a problem.

Image

Posted on
Thu Feb 02, 2017 1:00 pm
jay (support) offline
Site Admin
User avatar
Posts: 14645
Joined: Mar 19, 2008
Location: Austin, Texas

Re: [HOWTO]: Using HTTP Basic Authentication

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.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Feb 02, 2017 3:36 pm
lindehoff offline
Posts: 79
Joined: Aug 08, 2015

[HOWTO]: Using HTTP Basic Authentication

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){

})

Posted on
Thu Feb 02, 2017 8:30 pm
craigsheppard offline
Posts: 7
Joined: May 27, 2008

Re: [HOWTO]: Using HTTP Basic Authentication

Thanks! 'request' worked for me. I was hoping to not use any external deps, but this will be fine for now. Cheers!

Who is online

Users browsing this forum: No registered users and 1 guest