forked from GNUsocial/gnu-social
Create Account Manager plugin implementing the Account Management specification
Add Account Manager support to the OpenID plugin
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user