diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-12-15 20:07:48 -0500 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-12-15 20:07:48 -0500 |
commit | 580cd62f0a4fac5dba37a8a152afaecd99e8c767 (patch) | |
tree | ad71f414174ffe91536ecb9875377ce2682b53fc /models/Auth/OpenID/Extension.php | |
parent | d9bf22a0e29c2a70049443a0ae8521a2c0492c8b (diff) | |
download | elgg-580cd62f0a4fac5dba37a8a152afaecd99e8c767.tar.gz elgg-580cd62f0a4fac5dba37a8a152afaecd99e8c767.tar.bz2 |
removed old libraries - depends on openid_api now
Diffstat (limited to 'models/Auth/OpenID/Extension.php')
-rw-r--r-- | models/Auth/OpenID/Extension.php | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/models/Auth/OpenID/Extension.php b/models/Auth/OpenID/Extension.php deleted file mode 100644 index c4e38c038..000000000 --- a/models/Auth/OpenID/Extension.php +++ /dev/null @@ -1,61 +0,0 @@ -<?php - -/** - * An interface for OpenID extensions. - * - * @package OpenID - */ - -/** - * Require the Message implementation. - */ -require_once 'Auth/OpenID/Message.php'; - -/** - * A base class for accessing extension request and response data for - * the OpenID 2 protocol. - * - * @package OpenID - */ -class Auth_OpenID_Extension { - /** - * ns_uri: The namespace to which to add the arguments for this - * extension - */ - var $ns_uri = null; - var $ns_alias = null; - - /** - * Get the string arguments that should be added to an OpenID - * message for this extension. - */ - function getExtensionArgs() - { - return null; - } - - /** - * Add the arguments from this extension to the provided message. - * - * Returns the message with the extension arguments added. - */ - function toMessage($message) - { - $implicit = $message->isOpenID1(); - $added = $message->namespaces->addAlias($this->ns_uri, - $this->ns_alias, - $implicit); - - if ($added === null) { - if ($message->namespaces->getAlias($this->ns_uri) != - $this->ns_alias) { - return null; - } - } - - $message->updateArgs($this->ns_uri, - $this->getExtensionArgs()); - return $message; - } -} - |