ndejong / pfsense_fauxapi

REST based API interface for pfSense 2.3.x and 2.4.x to facilitate devops
Apache License 2.0
354 stars 61 forks source link

Allow UNIX timestamp auth #68

Open GaraQuor opened 4 years ago

GaraQuor commented 4 years ago

Hello,

It would be great if we could pass a raw UNIX timestamp in the auth header. A simple solution is to pass an '@' at the beginning of the value to strtotime treat the input as a UNIX timestamp (as described here https://www.php.net/manual/en/datetime.formats.compound.php)

The only fix is to add '@' char in the sanitizer allowed array

ndejong commented 4 years ago

Cool, added to the "enhancements" list