Web server basic authentication

Related to the development libraries, released by Curt Binder

Posts: 12200
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Wed Jul 09, 2014 10:22 am
Hi Guys,

I've added HTTP basic authentication to the webserver.
We failed to implement this in the past, but I think it should be stable this time.
It is currently in the dev branch.
This is the github issue: https://github.com/reefangel/Libraries/issues/154
If you get to test it, please post back here or log it into the github issue tracking whether it worked for you or not.
One point to remind is that your phone app will not work if you enable authentication.
Roberto.
User avatar
Posts: 2732
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
PostPosted: Wed Jul 09, 2014 11:14 am
what version of libraries will this be added? 1.11? or something or later?

Sent from my Moto X

Posts: 12200
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Wed Jul 09, 2014 3:39 pm
Yes, it will be available in the next one.
Roberto.
User avatar
Posts: 2732
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
PostPosted: Wed Jul 09, 2014 6:23 pm
The webserver authentication only works on the controller, correct?
This is not the same as the security key that is used for the portal....ie. ReefAngel.Portal(username, password)
Is that correct?

Then, using this authentication, you would use this url to communicate with your controller:
Code: Select all
http://user:pass@DEVICE_IP:PORT/

Hopefully I'm following correctly. Provided I am, I was going to implement this into my android app for those that wanted to test it out and use it.

Posts: 12200
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Wed Jul 09, 2014 7:17 pm
Yes, it is just basic authentication in the internal RA webserver and sending the url like you mentioned should work, although IE had problems understanding it for some reason, but firefox worked fine with an url like that.
Roberto.
User avatar
Posts: 2732
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
PostPosted: Wed Jul 09, 2014 7:22 pm
ok. good to know.
i'm going to add this in (doesn't look the best, but works for now).
ra_wifi_auth.png
ra_wifi_auth.png (63.93 KiB) Viewed 2699 times

and then allow people to test things out to see how well it works.
User avatar
Posts: 2732
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
PostPosted: Wed Jul 09, 2014 8:36 pm
Ok. I've got a working build for the webserver authentication. I'm going to sleep on it and verify things are working properly before I release it tomorrow. I have tested it on my controller at my desk and it works just fine communicating with a v1.1.0 controller with or without the authentication set. I am interested to see / hear how it works when the authentication is actually enabled. I may have to update my errors appropriately because I am not doing anything special for the authentication errors.
User avatar
Posts: 2732
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
PostPosted: Thu Jul 10, 2014 9:34 am
just posted a beta release of my app that should incorporate the authentication. check my thread for a link to download it.

Posts: 411
Joined: Sat Mar 30, 2013 5:02 pm
Location: CT, USA
PostPosted: Thu Jul 10, 2014 9:42 am
this is awesome! you guys freaking rock!
User avatar
Posts: 2732
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
PostPosted: Thu Jul 10, 2014 9:43 am
Smotz wrote:this is awesome! you guys freaking rock!

thanks. i decided i would try to stay up on things if i could. :)
Next

Return to Development Libraries

Who is online

Users browsing this forum: No registered users and 2 guests