aboutsummaryrefslogtreecommitdiff
path: root/models/Auth.old/OpenID/Extension.php
diff options
context:
space:
mode:
Diffstat (limited to 'models/Auth.old/OpenID/Extension.php')
-rw-r--r--models/Auth.old/OpenID/Extension.php58
1 files changed, 0 insertions, 58 deletions
diff --git a/models/Auth.old/OpenID/Extension.php b/models/Auth.old/OpenID/Extension.php
deleted file mode 100644
index 73b5d502e..000000000
--- a/models/Auth.old/OpenID/Extension.php
+++ /dev/null
@@ -1,58 +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)
- {
- if ($message->namespaces->addAlias($this->ns_uri,
- $this->ns_alias) === null) {
- if ($message->namespaces->getAlias($this->ns_uri) !=
- $this->ns_alias) {
- return null;
- }
- }
-
- $message->updateArgs($this->ns_uri,
- $this->getExtensionArgs());
- return $message;
- }
-}
-
-?> \ No newline at end of file