-->
Page 2 of 2

Re: Simple form of authenticated client in web server?

PostPosted: Thu Feb 28, 2019 9:56 am
by Pablo2048
The MAC method will not work IMO - if you put the ESP behind router and redirect all http traffic to it, it will fail - every connection will have the router's MAC address. AFAIK there are two methods to handle this:
1. use cookie - standard method and best solution IMHO
2. write your own logged/not logged system, based on some hashes from http headers (to unique identify computer and/or browser) and expiration timer.

Re: Simple form of authenticated client in web server?

PostPosted: Thu Feb 28, 2019 11:24 am
by FRANCISCOGIMENO1000
I think it's going to be the only way. The happy cookies

Thank you.

Re: Simple form of authenticated client in web server?

PostPosted: Mon Apr 22, 2019 3:39 pm
by twinclouds
I have a similar questions. I can find quite a few examples to perform authentication using password and they all works. This one: https://github.com/esp8266/ESPWebServer/commit/c67fb968ed41de35dfaf5eab9404ca1cce281648 is very simple and I verified it works. However, my problem is, none of the articles telling me how to execute codes once authenticated to perform the desired functions. It should not be very difficult but I just cannot figure this out. Can someone help? Thanks.