/**
  * @param $inputs
  * @return string
  */
 private function getRequestMode($inputs)
 {
     $grantType = ProxyAux::getQueryValue($inputs, ProxyAux::GRANT_TYPE);
     $skip = ProxyAux::getQueryValue($inputs, $this->skipParam);
     $mode = ProxyAux::MODE_TOKEN;
     if (isset($grantType)) {
         if ($grantType === ProxyAux::PASSWORD_GRANT) {
             $mode = ProxyAux::MODE_LOGIN;
         }
     } elseif (isset($skip) && strtolower($skip) === 'true') {
         $mode = ProxyAux::MODE_SKIP;
     }
     return $mode;
 }
 /**
  * @param $inputs
  * @return array
  */
 private function removeTokenExtraParams($inputs)
 {
     $inputs = ProxyAux::removeQueryValue($inputs, ProxyAux::ACCESS_TOKEN);
     return $inputs;
 }