Generate openid2 headers as well
This causes meta.openid to also generate the openid2 headers. Signed-off-by: martin f. krafft <madduck@madduck.net>master
parent
816d124a64
commit
c471d5425f
|
@ -140,10 +140,14 @@ sub preprocess (@) { #{{{
|
||||||
if (exists $params{server} && safeurl($params{server})) {
|
if (exists $params{server} && safeurl($params{server})) {
|
||||||
push @{$metaheaders{$page}}, '<link href="'.encode_entities($params{server}).
|
push @{$metaheaders{$page}}, '<link href="'.encode_entities($params{server}).
|
||||||
'" rel="openid.server" />';
|
'" rel="openid.server" />';
|
||||||
|
push @{$metaheaders{$page}}, '<link href="'.encode_entities($params{server}).
|
||||||
|
'" rel="openid2.provider" />';
|
||||||
}
|
}
|
||||||
if (safeurl($value)) {
|
if (safeurl($value)) {
|
||||||
push @{$metaheaders{$page}}, '<link href="'.encode_entities($value).
|
push @{$metaheaders{$page}}, '<link href="'.encode_entities($value).
|
||||||
'" rel="openid.delegate" />';
|
'" rel="openid.delegate" />';
|
||||||
|
push @{$metaheaders{$page}}, '<link href="'.encode_entities($value).
|
||||||
|
'" rel="openid2.local_id" />';
|
||||||
}
|
}
|
||||||
if (exists $params{xrds-location} && safeurl($params{xrds-location})) {
|
if (exists $params{xrds-location} && safeurl($params{xrds-location})) {
|
||||||
push @{$metaheaders{$page}}, '<meta http-equiv="X-XRDS-Location"'.
|
push @{$metaheaders{$page}}, '<meta http-equiv="X-XRDS-Location"'.
|
||||||
|
|
|
@ -64,8 +64,8 @@ Supported fields:
|
||||||
* openid
|
* openid
|
||||||
|
|
||||||
Adds html <link> tags to perform OpenID delegation to an external
|
Adds html <link> tags to perform OpenID delegation to an external
|
||||||
OpenID server. An optional `xrds-location` parameter lets you specify the
|
OpenID server (for `openid` and `openid2`). An optional `xrds-location`
|
||||||
location of any [eXtensible Resource
|
parameter lets you specify the location of any [eXtensible Resource
|
||||||
DescriptorS](http://www.windley.com/archives/2007/05/using_xrds.shtml).
|
DescriptorS](http://www.windley.com/archives/2007/05/using_xrds.shtml).
|
||||||
|
|
||||||
This lets you use an ikiwiki page as your OpenID. Example:
|
This lets you use an ikiwiki page as your OpenID. Example:
|
||||||
|
|
Loading…
Reference in New Issue