Web server basic authentication

Related to the development libraries, released by Curt Binder
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Web server basic authentication

Post by lnevo »

Block Party...damn floridian..its 27 degrees in NY!! Happy New Year's everyone!!!
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Web server basic authentication

Post by Sacohen »

Yeah, my neighbors are Greek and cooking a goat on a spit.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Web server basic authentication

Post by lnevo »

Nice!!!
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Web server basic authentication

Post by Sacohen »

Yeah, my wife and son said the goat was excellent. I was not feeling adventurous and didn't try it.

I loaded the new dev code and it is connection to the portal fine now and staying connected, before I believe it would connect after the initial loading of the code and then a bit later it would not and give me an unavailable address message.

What do I need to have Russ at reeftronics do to see if it works there?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Web server basic authentication

Post by rimai »

I'm pretty sure he is pulling data from /r99.
We need to tell them to change it to /sa.
Roberto.
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Web server basic authentication

Post by Sacohen »

Ok. I'll ask him to try, but before I do that I want to make sure that the code is working properly and we won't be changing things on him.

I just noticed that since putting the new dev code in that the Android app is giving me errors...

Error 13 Device Authentication Error.
check your username and password settings.
pandimus
Posts: 213
Joined: Mon Apr 01, 2013 7:58 pm

Re: Web server basic authentication

Post by pandimus »

Sacohen wrote:Ok. I'll ask him to try, but before I do that I want to make sure that the code is working properly and we won't be changing things on him.

I just noticed that since putting the new dev code in that the Android app is giving me errors...

Error 13 Device Authentication Error.
check your username and password settings.
I've been getting that error constantly for the last two months.. But yet I hit refresh and my app still uodates
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Web server basic authentication

Post by Sacohen »

Russ has enabled the /sa in the Reeftronics website. So if you enable the web authentication on your code it will still send information to Reeftronics.
Done! Well, that was surprisingly easy.

Apparently that /sa URI has been available all along. I was anticipating needing to modify my code to test if /r99 resulted in an authentication failure, then try /sa if needed. But I found that /sa works on all RAs on Reeftronics, so the necessary code change was really quite simple.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Web server basic authentication

Post by lnevo »

So does it query both or is there an option, or you have to resend your info to Russ? There's not much for Settings on the site..
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Web server basic authentication

Post by Sacohen »

Not sure. It sounds like it is querying the sa.
Maybe a better question for Russ to answer.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Web server basic authentication

Post by rimai »

/sa has been in our libraries forever...
Roberto.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Web server basic authentication

Post by lnevo »

Cool did not know that.
AlanM
Posts: 263
Joined: Wed Jan 01, 2014 7:26 am

Re: Web server basic authentication

Post by AlanM »

I'm getting periodic 401 Auth errors from Reeftronics. I know Russ uses /sa to get the data, so it shouldn't be throwing this error. I'm trying to find where in the code it checks for Auth and am not locating it. Can you explain a bit where in RA_Wifi it checks to see if you're authenticated and where it might deliver up the 401 error defined in RA_Wifi.h as SERVER_DENY? I can't find any reference anywhere to that one.
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Web server basic authentication

Post by Sacohen »

Alan;
Did you get anywhere with this?
I'm not getting 401 errors, but I am getting emails from Reeftronics saying they were unable to connect to my controller a lot more often then when i didn't have the authentication on.

Sent from my SM-G928P using Tapatalk
Post Reply