diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-08-04 13:04:31 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-08-04 13:04:31 -0400 |
commit | 2ed46ce274c3b404fdf75aacafa5d5fa7a807240 (patch) | |
tree | fcaae42bdb8d69a1e8028bd9294dd376759852f0 /plugins | |
parent | 628a9371082531908a023618ad4216a2f254f481 (diff) |
move XRDS code from public action to OpenIDPlugin
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/OpenID/OpenIDPlugin.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/OpenID/OpenIDPlugin.php b/plugins/OpenID/OpenIDPlugin.php index fb6bc5cf8..a395f9107 100644 --- a/plugins/OpenID/OpenIDPlugin.php +++ b/plugins/OpenID/OpenIDPlugin.php @@ -142,4 +142,18 @@ class OpenIDPlugin extends Plugin return true; } } + + /** + * We include a <meta> element linking to the publicxrds page, for OpenID + * client-side authentication. + * + * @return void + */ + + function onEndHeadChildren($action) + { + // for client side of OpenID authentication + $action->element('meta', array('http-equiv' => 'X-XRDS-Location', + 'content' => common_local_url('publicxrds'))); + } } |