Create Account Manager plugin implementing the Account Management specification

Add Account Manager support to the OpenID plugin
This commit is contained in:
Craig Andrews
2010-09-05 18:03:31 -04:00
parent 8d54809c35
commit 6f95ccd37d
5 changed files with 324 additions and 0 deletions

View File

@@ -630,6 +630,28 @@ class OpenIDPlugin extends Plugin
return true;
}
/**
* 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
*