/usr/share/doc/php-openid/examples/server/lib/render/userXrds.php is in php-openid 2.2.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | <?php
require_once "lib/session.php";
require_once "lib/render.php";
require_once "Auth/OpenID/Discover.php";
define('user_xrds_pat', '<?xml version="1.0" encoding="UTF-8"?>
<xrds:XRDS
xmlns:xrds="xri://$xrds"
xmlns="xri://$xrd*($v*2.0)">
<XRD>
<Service priority="0">
<Type>%s</Type>
<Type>%s</Type>
<URI>%s</URI>
</Service>
</XRD>
</xrds:XRDS>
');
function userXrds_render($identity)
{
$headers = array('Content-type: application/xrds+xml');
$body = sprintf(user_xrds_pat,
Auth_OpenID_TYPE_2_0,
Auth_OpenID_TYPE_1_1,
buildURL());
return array($headers, $body);
}
?>
|