Generate openid2 headers as well
authormartin f. krafft <madduck@madduck.net>
Tue, 11 Mar 2008 13:00:59 +0000 (14:00 +0100)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 11 Mar 2008 19:53:21 +0000 (15:53 -0400)
This causes meta.openid to also generate the openid2 headers.

Signed-off-by: martin f. krafft <madduck@madduck.net>
IkiWiki/Plugin/meta.pm
doc/plugins/meta.mdwn

index b9886472250ba9e78194ff1ccdf05275979408a0..0c210b64d6b78f2f028d07680a566137833656d4 100644 (file)
@@ -140,10 +140,14 @@ sub preprocess (@) { #{{{
                if (exists $params{server} && safeurl($params{server})) {
                        push @{$metaheaders{$page}}, '<link href="'.encode_entities($params{server}).
                                '" rel="openid.server" />';
+                       push @{$metaheaders{$page}}, '<link href="'.encode_entities($params{server}).
+                               '" rel="openid2.provider" />';
                }
                if (safeurl($value)) {
                        push @{$metaheaders{$page}}, '<link href="'.encode_entities($value).
                                '" rel="openid.delegate" />';
+                       push @{$metaheaders{$page}}, '<link href="'.encode_entities($value).
+                               '" rel="openid2.local_id" />';
                }
                if (exists $params{xrds-location} && safeurl($params{xrds-location})) {
                        push @{$metaheaders{$page}}, '<meta http-equiv="X-XRDS-Location"'.
index 336c798065b2ce741954b5fcbfaccb5fa640f46a..0a934fc5cb73438f43e7d1c147f527db95007b0b 100644 (file)
@@ -64,8 +64,8 @@ Supported fields:
 * openid
 
   Adds html &lt;link&gt; tags to perform OpenID delegation to an external
-  OpenID server. An optional `xrds-location` parameter lets you specify the
-  location of any [eXtensible Resource
+  OpenID server (for `openid` and `openid2`). An optional `xrds-location`
+  parameter lets you specify the location of any [eXtensible Resource
   DescriptorS](http://www.windley.com/archives/2007/05/using_xrds.shtml).
 
   This lets you use an ikiwiki page as your OpenID. Example: