public function handleUserInfoRequest(\OAuth2\RequestInterface $request = null, \OAuth2\ResponseInterface $response = null) { if ($request === null) { $request = $this->module->getRequest(); } return parent::handleUserInfoRequest($request, $response); }
public function handleAuthorizeRequest(\OAuth2\RequestInterface $request = null, \OAuth2\ResponseInterface $response = null, $is_authorized = false, $user_id = null) { if ($request === null) { $request = $this->module->getRequest(); } if ($response === null) { $response = $this->module->getResponse(); } return parent::handleAuthorizeRequest($request, $response, $is_authorized, $user_id); }
protected function getErrorMessage(\OAuth2\Response $response) { $message = Module::t('common', $response->getParameter('error_description')); if ($message === null) { $message = Module::t('common', 'An internal server error occurred.'); } return $message; }
/** * @inheritdoc */ public function beforeAction($action) { $server = Module::getInstance()->getServer(); $server->verifyResourceRequest(); return parent::beforeAction($action); }