summaryrefslogtreecommitdiff
path: root/plugins/OpenID/OpenIDPlugin.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2010-09-05 18:03:31 -0400
committerCraig Andrews <candrews@integralblue.com>2010-09-07 13:45:52 -0400
commit6f95ccd37de1f7e2063206e87c93cbe06097eae7 (patch)
tree3793fb2641af3a44453cfc0ee3884a017ea43c0a /plugins/OpenID/OpenIDPlugin.php
parent8d54809c3561bf56afcdb401ef3c009e9a180cbc (diff)
Create Account Manager plugin implementing the Account Management specification
Add Account Manager support to the OpenID plugin
Diffstat (limited to 'plugins/OpenID/OpenIDPlugin.php')
-rw-r--r--plugins/OpenID/OpenIDPlugin.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/plugins/OpenID/OpenIDPlugin.php b/plugins/OpenID/OpenIDPlugin.php
index 7d6a5dc00..e58440fc1 100644
--- a/plugins/OpenID/OpenIDPlugin.php
+++ b/plugins/OpenID/OpenIDPlugin.php
@@ -631,6 +631,28 @@ class OpenIDPlugin extends Plugin
}
/**
+ * Add OpenID information to the Account Management Control Document
+ * Event supplied by the Account Manager plugin
+ *
+ * @param array &$amcd Array that expresses the AMCD
+ *
+ * @return boolean hook value
+ */
+
+ function onEndAccountManagementControlDocument(&$amcd)
+ {
+ $amcd['auth-methods']['openid'] = array(
+ 'connect' => array(
+ 'method' => 'POST',
+ 'path' => common_local_url('openidlogin'),
+ 'params' => array(
+ 'identity' => 'openid_url'
+ )
+ )
+ );
+ }
+
+ /**
* Add our version information to output
*
* @param array &$versions Array of version-data arrays