Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removing obsolete EAUT support

  • Loading branch information...
commit 8bfc308a6b7b43f7dcf3a128acad977dcd0749f6 1 parent 872b8e5
@cakebaker authored
Showing with 0 additions and 19 deletions.
  1. +0 −19 controllers/components/openid.php
View
19 controllers/components/openid.php
@@ -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
@@ -83,10 +80,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);
}
@@ -265,10 +258,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']));
}
@@ -304,12 +293,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');
- }
}
Please sign in to comment.
Something went wrong with that request. Please try again.