public function itCallsTheDriverForConnexion() { $openid_url = "https://www.google.com/accounts/o8/id"; $return_to_url = "http://example.net"; expect($this->driver)->connect($openid_url, $return_to_url)->once(); $this->connexion_manager->startAuthentication($openid_url, $return_to_url); }
private function startAuthentication($finish_url) { $openid_url = $this->request->getValidated('openid_url', 'string', ''); $return_url = get_server_url() . '/my'; if ($this->request->existAndNonEmpty('return_to')) { $return_url = urlencode($this->request->getValidated('return_to', 'string', '')); } $driver = new Openid_Driver_ConnexionDriver($this->logger, $finish_url); $manager = new Openid_ConnexionManager($driver); $manager->startAuthentication($openid_url, $return_url); }