Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Removing EAUT support as EAUT is dead
Browse files Browse the repository at this point in the history
  • Loading branch information
cakebaker committed Sep 7, 2011
1 parent 0aa3b6c commit 11249a3
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions Controller/Component/OpenidComponent.php
Expand Up @@ -13,9 +13,6 @@
* To accept Google Apps OpenIDs, use the following config setting:
* public $components = array('Openid' => array('accept_google_apps' => true));
*
* To make use of Email Address to URL Transformation (EAUT), you also need the
* EAUT library: http://code.google.com/p/eaut/
*
* Copyright (c) by Daniel Hofstetter (daniel.hofstetter@42dh.com, http://cakebaker.42dh.com)
*
* Licensed under The MIT License
Expand Down Expand Up @@ -72,10 +69,6 @@ public function authenticate($openidUrl, $returnTo, $realm, $dataFields = array(
$openidUrl = trim($openidUrl);

if ($openidUrl != '') {
if ($this->isEmail($openidUrl)) {
$openidUrl = $this->transformEmailToOpenID($openidUrl);
}

$consumer = $this->getConsumer();
$authRequest = $consumer->begin($openidUrl);
}
Expand Down Expand Up @@ -270,10 +263,6 @@ private function importCoreFilesFromOpenIDLibrary() {
App::import('Vendor', $this->importPrefix.'google', array('file' => 'Auth'.DS.'OpenID'.DS.'google_discovery.php'));
}

private function isEmail($string) {
return strpos($string, '@');
}

private function isOpenIDResponseViaGET() {
return (isset($this->controller->params['url']['openid_mode']));
}
Expand Down Expand Up @@ -309,12 +298,4 @@ private function showFormWithAutoSubmit($request, $returnTo, $realm) {
$formHtml.'</body></html>';
exit;
}

private function transformEmailToOpenID($email) {
if (App::import('Vendor', $this->importPrefix.'emailtoid', array('file' => 'Auth'.DS.'Yadis'.DS.'Email.php'))) {
return Auth_Yadis_Email_getID($email);
}

throw new InvalidArgumentException('Invalid OpenID');
}
}

0 comments on commit 11249a3

Please sign in to comment.