Sheerwater\HMACRestfulAuthenticator\HMACRestfulAuthenticator::validateRequestTime
Validates a user-/request-provided date against specification RFC 2616. This avoids the client using values that are invalid but still work with strtotime, such as 'now' or '-1 minute'. Also checks that the time is within 15 minutes of server time.
Signature
private function validateRequestTime(string
$time )
Parameters
$time
— string- The time passed in the request's HTTP header
Returns
- bool