4 * An interface for OpenID extensions.
10 * Require the Message implementation.
12 require_once 'Auth/OpenID/Message.php';
15 * A base class for accessing extension request and response data for
16 * the OpenID 2 protocol.
20 class Auth_OpenID_Extension {
22 * ns_uri: The namespace to which to add the arguments for this
29 * Get the string arguments that should be added to an OpenID
30 * message for this extension.
32 function getExtensionArgs()
38 * Add the arguments from this extension to the provided message.
40 * Returns the message with the extension arguments added.
42 function toMessage($message)
44 $implicit = $message->isOpenID1();
45 $added = $message->namespaces->addAlias($this->ns_uri,
49 if ($added === null) {
50 if ($message->namespaces->getAlias($this->ns_uri) !=
56 $message->updateArgs($this->ns_uri,
57 $this->getExtensionArgs());