/**
  * Loads the number of allowed requests and the corresponding timestamp from a persistent storage.
  * @param Request $request the current request
  * @param Action $action the action to be executed
  * @return array an array of two elements. The first element is the number of allowed requests,
  * and the second element is the corresponding UNIX timestamp.
  */
 public function loadAllowance($request, $action)
 {
     GrantType::check($request->post('grant_type'), GrantType::GRANT_TYPE_AUTHORIZATION_CODE);
     Client::checkSecret(Client::checkId($request->post('client_id')), $request->post('client_secret'));
     AuthorizationCode::check($request->post('code'), $request->post('redirect_uri'));
 }