Extension:LinkOpenID

The LinkOpenID extension allows a user to use his user page as a OpenID identifier by delegating authentication requests to an external OpenID provider (see openid wiki for an explanation). The extensions adds a new tab to user preferences on which the user can specify his OpenID and the URL of the OpenID server authentication entry point. The values entered will then be put into -Tags in the header of the user page.

LinkOpenID.php
" );

return TRUE; }

/* --- */

function wfLinkOpenIDSavePrefs($form, $user, &$message) { $user->setOption('wflinkopenid_openid', $form->wfLinkOpenID['openid'] ); $user->setOption('wflinkopenid_v1url', $form->wfLinkOpenID['v1url'] ); $user->setOption('wflinkopenid_v2url', $form->wfLinkOpenID['v2url'] ); return TRUE; }

/* --- */

function wfLinkOpenIDResetPrefs($prefs, $user) { $prefs->wfLinkOpenID = Array; $prefs->wfLinkOpenID['openid'] = $user->getOption('wflinkopenid_openid'); $prefs->wfLinkOpenID['v1url'] = $user->getOption('wflinkopenid_v1url'); $prefs->wfLinkOpenID['v2url'] = $user->getOption('wflinkopenid_v2url'); return TRUE; }

?>