wifidog / wifidog-auth

Repository for the PHP wifidog captive portal auth server
194 stars 121 forks source link

authenticate guest one time #10

Open nextwi opened 8 years ago

nextwi commented 8 years ago

Hi all!

The issue i'm trying to resolve is when a guest connect for the first time to a gateway, the auth server has to remember him, so when he come back he will not be redirected to splash page but connected automatically, using this we can optimise UX. I think we should add a verification based on the couple {MAC, GwID} if it returns False then we proceed as a normal, else guest bypass the normal process.

waiting for your thoughts.

staurasi commented 8 years ago

I think this would be a great feature. But maybe this is not the right place to ask because I think that the most part of the job has to be done in the gateway. I will ask for this in the gateway repository an propose some ideas.

gareth41 commented 8 years ago

For this to happen without splash page showing, a client will need to be authenticated (firewall opened) before they finish dhcp, otherwise they will get the splash page as soon as they have finished dhcp, eg iPhones. You will need some method to get the clients ip and Mac before they finish negotiating dhcp, the best way I can find is to implement a dhcp server in wifidog and attempt authentication using clients Mac on receiving the a dhcp request packet from client, then reply with dhcp ack after trying authentication.