Authentification
How does it work
To authenticate a key with the server, the lock performs a GET request and places the key value it reads in a parameter of the URL. Here is an example of a query made by the lock:
www.exemple.com/index.php?key=0200AD56F7C5
The PHP script (found in index.php in the root folder of the site) in charge of the authentication will then retrieve the key value placed in the "key" parameter of the URL. After confirming the existence of the key in the database and if the permission was founded, the server returns an HTTP 200 code if the key is authorized to open the door or a HTTP code 401 if the door have to stay closed.