Lines Matching refs:servicename
19 public function startFlow($servicename)
24 $session->setLoginData($servicename, $ID);
26 $service = $this->loadService($servicename);
62 $service = $this->loadService($logindata['servicename']);
72 $userdata = $this->validateUserData($userdata, $logindata['servicename']);
73 $userdata = $this->processUserData($userdata, $logindata['servicename']);
81 $session->setCookie($logindata['servicename'], $storageId); // set cookie
125 $service = $this->loadService($cookie['servicename']);
135 $userdata = $this->validateUserData($userdata, $cookie['servicename']);
136 $userdata = $this->processUserData($userdata, $cookie['servicename']);
153 $service = $this->loadService($cookie['servicename']);
178 * @param string $servicename
182 protected function validateUserData($userdata, $servicename)
189 throw new Exception('noEmail', [$servicename]);
227 * @param string $servicename Auth service
231 protected function processUserData($userdata, $servicename)
244 if (!in_array($auth->cleanGroup($servicename), $localUserInfo['grps'])) {
245 throw new Exception('authnotenabled', [$servicename]);
266 if (!$auth->registerOAuthUser($userdata, $servicename)) {
302 * @param string $servicename
306 protected function loadService($servicename)
310 $srv = $hlp->loadService($servicename);
312 if ($srv === null) throw new Exception("No such service $servicename");